package com.dsh.other.feignclient.activity;
|
|
import com.dsh.other.feignclient.activity.model.Coupon;
|
import com.dsh.other.feignclient.activity.model.QueryUserCouponByIdAndUserId;
|
import com.dsh.other.feignclient.activity.model.UserCoupon;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
/**
|
* @author zhibing.pu
|
* @date 2023/7/5 20:54
|
*/
|
@FeignClient("mb-cloud-activity")
|
public interface UserCouponClient {
|
|
/**
|
* 根据id修改门票使用状态
|
*
|
* @param id
|
* @return
|
*/
|
@GetMapping("/userCoupon/changeTicketStatus/{id}/{storeId}/{siteId}")
|
void changeTicketStatus(@PathVariable("id") String id,@PathVariable("storeId") Integer storeId,@PathVariable("siteId") Integer siteId);
|
/**
|
* 根据id获取用户优惠券数据
|
*
|
* @param queryUserCouponByIdAndUserId
|
* @return
|
*/
|
@PostMapping("/userCoupon/queryUserCouponById")
|
UserCoupon queryUserCouponById(QueryUserCouponByIdAndUserId queryUserCouponByIdAndUserId);
|
|
/**
|
* 修改优惠券数据
|
*
|
* @param userCoupon
|
*/
|
@PostMapping("/userCoupon/updateUserCoupon")
|
void updateUserCoupon(UserCoupon userCoupon);
|
}
|