You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6 KiB

package com.qniao.dam.application;
import com.qniao.dam.application.request.UserAcquireNewMIRightBySdkDto;
import com.qniao.dam.application.request.UserCheckEnableRightBySdkQueryParam;
import com.qniao.dam.application.request.UserConsumeRightBySdkDto;
import com.qniao.dam.application.request.UserSendBackBightBySdkDto;
import com.qniao.dam.application.response.UserCheckEnableRightBySdkVo;
import com.qniao.dam.application.response.UserConsumeRightBySdkVo;
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;
import javax.validation.Valid;
@FeignClient("eureka-client-dating-agency-mall")
@RequestMapping("dating-agency-mall")
public interface MallServerApplicationService {
/**
* 客户检查可用权益
*
* @param queryParam
* @return
*/
@PostMapping("/user/check/enable-right/by/sdk")
UserCheckEnableRightBySdkVo userCheckEnableRightBySdk(@RequestBody UserCheckEnableRightBySdkQueryParam queryParam);
@PostMapping("/user/consume/right/by/sdk")
UserConsumeRightBySdkVo userConsumeRightBySdk(@RequestBody UserConsumeRightBySdkDto dto);
/**
* 通过SDK退回消费过的权益
*/
@PostMapping("/user/send-back/right/by/sdk")
void userSendBackRightBySdk(@RequestBody UserSendBackBightBySdkDto dto);
/**
* 新用户获取赠送的权益
*/
@PostMapping("/user/acquire/new-mi-right/by/sdk")
void userAcquireNewMIRight(@RequestBody @Valid UserAcquireNewMIRightBySdkDto dto);
}