/**
 * All rights Reserved, Designed By www.freemud.cn
 *
 * @Title: PromotionActivityClient
 * @Package cn.freemud.service.thirdparty
 * @Description:
 * @author: liming.guo
 * @date: 2018/8/6 11:14
 * @version V1.0
 * @Copyright: 2018 www.freemud.cn Inc. All rights reserved.
 * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
 */
package cn.freemud.service.thirdparty;

import cn.freemud.annotations.LogIgnoreFeign;
import cn.freemud.base.entity.BaseResponse;
import cn.freemud.entities.dto.activity.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "ACTIVITY-APPLICATION-SERVICE", url = "${saas.activityapplicationclient.feign.url}")
@RequestMapping(produces = {"application/json;charset=UTF-8"})
public interface ActivityApplicationClient {


    /**
     * 同享支付有礼活动验证与参与
     * @param requestVo
     * @return
     */
    @LogIgnoreFeign(logMessage="payGiftShareCheckAndJoin")
    @PostMapping("/promotionActivity/payGiftShareCheckAndJoin")
    BaseResponse<PayGiftCheckAndJoinResponseObj> payGiftCheckAndJoinNew(@RequestBody PayGitCheckAndJoinRequestDto requestVo);

    /**
     * 查询可领券活动
     * 目前:  评价有礼活动使用
     */
    @LogIgnoreFeign(logMessage="checkAndJoin")
    @PostMapping("/promotionActivity/evaluate/checkAndJoin")
    public BaseResponse<CheckAndJoinResponse> checkAndJoin(@RequestBody CheckAndJoinRequest requestVo);


}
