无关风月
2025-11-19 c16becdd1bf5197fbe9dab3a6a8f440f79b938af
cloud-server-other/src/main/java/com/dsh/other/feignclient/activity/UserCouponClient.java
@@ -1,7 +1,11 @@
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;
/**
@@ -11,17 +15,26 @@
@FeignClient("mb-cloud-activity")
public interface UserCouponClient {
    /**
     * 根据id获取用户优惠券数据
     * 根据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(Long id);
    UserCoupon queryUserCouponById(QueryUserCouponByIdAndUserId queryUserCouponByIdAndUserId);
    /**
     * 修改优惠券数据
     *
     * @param userCoupon
     */
    @PostMapping("/userCoupon/updateUserCoupon")