无关风月
9 小时以前 4c9035836c18886883d3f69d8443c53d15b068fc
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
package com.dsh.other.feignclient.activity;
 
import com.dsh.other.feignclient.activity.model.Coupon;
import com.dsh.other.feignclient.activity.model.PointsMerchandise;
import com.dsh.other.model.CouponCity;
import com.dsh.other.model.CouponStore;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @date 2023/7/5 21:06
 */
@FeignClient("mb-cloud-activity")
public interface CouponClient {
 
 
    /**
     * 根据id获取优惠券
     *
     * @param id
     * @return
     */
    @PostMapping("/coupon/queryCouponById")
    Coupon queryCouponById(Integer id);
    @PostMapping("/coupon/queryCouponAll")
    List<Coupon> queryCouponAll();
    @PostMapping("/base/coupon/queryAllStore")
    List<CouponStore> queryAllStore();
    @PostMapping("/base/coupon/queryAllCity")
    List<CouponCity> queryAllCity();
    @PostMapping("/base/coupon/queryAllPointGoods")
    List<PointsMerchandise> queryAllPointGoods();
}