提交 | 用户 | age
|
6550d9
|
1 |
package com.hz.crm.feign; |
W |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.crm.dto.UserDto; |
|
5 |
import com.hz.crm.dto.coupon.CouponGoodsDto; |
|
6 |
import org.springframework.cloud.openfeign.FeignClient; |
|
7 |
import org.springframework.web.bind.annotation.PostMapping; |
|
8 |
import org.springframework.web.bind.annotation.RequestBody; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
|
13 |
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-coupon") |
|
14 |
public interface FCouponService { |
|
15 |
|
|
16 |
@PostMapping(value = "/coupon/getGoodsSku") |
|
17 |
Result getGoodsSku( @RequestBody(required = false) CouponGoodsDto couponGoodsDto); |
|
18 |
|
317d85
|
19 |
@PostMapping(value = "/coupon/getCommonName") |
W |
20 |
Result getCommonName( @RequestBody(required = false) CouponGoodsDto couponGoodsDto); |
|
21 |
|
6550d9
|
22 |
|
W |
23 |
} |