提交 | 用户 | age
|
a4c260
|
1 |
package com.hz.crm.feign; |
995edc
|
2 |
|
W |
3 |
import com.hx.resultTool.Result; |
a4c260
|
4 |
import com.hz.crm.dto.GoodsSkuDto; |
c65bc9
|
5 |
import com.hz.crm.dto.GoodsTypeDto; |
ad38f9
|
6 |
import com.hz.crm.dto.coupon.CouponCheckDto; |
995edc
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
W |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
9855d1
|
14 |
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-goods-sku") |
995edc
|
15 |
public interface FGoodsSkuService { |
W |
16 |
|
fb7d61
|
17 |
/**sku列表*/ |
995edc
|
18 |
@PostMapping(value = "/goods/sku/list") |
W |
19 |
Result list( @RequestBody(required = false) GoodsSkuDto goodsSkuDto); |
|
20 |
|
c65bc9
|
21 |
/**sku分类列表*/ |
fb7d61
|
22 |
@PostMapping(value = "/goods/sku/type/list") |
F |
23 |
Result typeList( @RequestBody(required = false) GoodsSkuDto goodsSkuDto); |
|
24 |
|
c65bc9
|
25 |
/**分类列表*/ |
F |
26 |
@PostMapping(value = "/goods/sku/type/list/all") |
|
27 |
Result typeListAll( @RequestBody(required = false) GoodsTypeDto goodsTypeDto); |
ad38f9
|
28 |
|
F |
29 |
/**优惠券校验接口*/ |
|
30 |
@PostMapping(value = "/goods/sku/check/coupon") |
|
31 |
Result goodsCheckType( @RequestBody(required = false) CouponCheckDto couponCheckDto); |
995edc
|
32 |
} |