package cn.freemud.service.thirdparty;

import cn.freemud.entities.EdenResponse;
import cn.freemud.entities.dto.wallace.request.PepsiOrderSubmitRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : xh.Z
 * @email : fisherman0510@163.com
 * @Date : 2022/7/15 17:04
 * @description :
 */
@FeignClient(name = "wallace-application")
@RequestMapping(produces = {MediaType.APPLICATION_JSON_UTF8_VALUE})
public interface WallaceApplicationClient {

    /**
     * 请求百事 设置抽奖次数+1
     *
     * @param request
     * @return
     */
    @PostMapping(value = "/pass/wallace/pepsi/order/submit")
    EdenResponse pepsiOrderSubmit(@RequestBody PepsiOrderSubmitRequest request);
}
