44323
2023-11-27 aa925d851857f50eff0556411366690d9a78a0e5
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.course.feignclient.activity;
 
import com.dsh.course.feignclient.activity.model.SendCouponReq;
import com.dsh.course.feignclient.activity.model.UserCoupon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
/**
 * @author zhibing.pu
 * @date 2023/7/5 20:54
 */
@FeignClient("mb-cloud-activity")
public interface UserCouponClient {
 
 
    /**
     * 根据id获取用户优惠券数据
     *
     * @param id
     * @return
     */
    @PostMapping("/userCoupon/queryUserCouponById1")
    UserCoupon queryUserCouponById(Long id);
 
    /**
     * 送优惠券
     *
     * @param sendCouponReq
     */
    @PostMapping("/userCoupon/sendUserCoupon")
    void sendUserCoupon(SendCouponReq sendCouponReq);
 
    @PostMapping("/userCoupon/edit")
    void edit(@RequestBody UserCoupon userCoupon);
}