提交 | 用户 | age
|
d3af5b
|
1 |
package com.hz.his.feign.service.platform; |
R |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.coupon.CouponAddDto; |
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
|
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
|
8 |
|
|
9 |
/** |
|
10 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
11 |
*/ |
|
12 |
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-coupon-quota-config") |
|
13 |
public interface SPhipCouponQuotaConfigService { |
|
14 |
|
|
15 |
/** |
|
16 |
* 开放平台-校验优惠券是否存在 创建或者更新 |
|
17 |
*/ |
4288fa
|
18 |
@PostMapping(value = "/coupon/quota/config/check/apply") |
R |
19 |
Result checkQuotaApply(@RequestBody CouponAddDto couponAddDto); |
d3af5b
|
20 |
|
R |
21 |
|
|
22 |
} |