puzhibing
2023-11-25 94f34a5cf9ab374afbaefd566bc0a3dc8a4616dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.dsh.account.feignclient.activity;
 
import com.dsh.account.feignclient.activity.model.CommodityRequest;
import com.dsh.account.feignclient.activity.model.UserCoupon;
import com.dsh.account.model.dto.Coupon;
import com.dsh.account.model.vo.sourceDetail.CouponStuAvailableVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@FeignClient(value = "mb-cloud-activity")
public interface UserConponClient {
    /**
     * 查询注册赠送优惠券 判断当前优惠券限领数量
     */
    @PostMapping("/coupon/queryCouponByUser/{userId}")
    public List<Long> queryCouponByUser(@PathVariable("userId") Integer userId);
 
    @PostMapping("/base/userConpon/getStuOfConpons")
    public List<CouponStuAvailableVo> queryUserWithConponList(@RequestParam("appUserId") Integer appUserId);
 
    @PostMapping("/coupon/queryCouponById")
    Coupon queryCouponById(Integer id);
 
    @PostMapping("/base/coupon/getAllCoupons")
    public List<Coupon> getAllCoupons(@RequestBody CommodityRequest request);
 
 
    @PostMapping("/base/coupon/getRedeemedNums")
    public int getRedeemedQuantity(@RequestBody Integer id);
 
    @PostMapping("/base/coupon/insertToAppuserCoupon")
    public void insertToAppuserCoupon(@RequestBody UserCoupon coupon);
 
    @PostMapping("/userCoupon/queryCouponOfStore")
    List<Integer> getCouponStoreIds(@RequestBody Integer couponId);
 
 
    @PostMapping("/userCoupon/queryCounts")
    Integer queryCounts(@RequestBody List<Integer> queryIds);
 
 
    @PostMapping("/userCoupon/queryCounts1")
    Integer queryCounts1(@RequestBody List<Integer> queryIds);
}