提交 | 用户 | 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; |
7db3b4
|
10 |
import org.springframework.web.bind.annotation.RequestMapping; |
W |
11 |
import org.springframework.web.bind.annotation.RequestMethod; |
995edc
|
12 |
|
c3ad9a
|
13 |
import javax.servlet.http.HttpServletRequest; |
W |
14 |
|
995edc
|
15 |
/** |
W |
16 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
17 |
*/ |
9855d1
|
18 |
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-goods-sku") |
995edc
|
19 |
public interface FGoodsSkuService { |
W |
20 |
|
fb7d61
|
21 |
/**sku列表*/ |
995edc
|
22 |
@PostMapping(value = "/goods/sku/list") |
W |
23 |
Result list( @RequestBody(required = false) GoodsSkuDto goodsSkuDto); |
|
24 |
|
c65bc9
|
25 |
/**sku分类列表*/ |
fb7d61
|
26 |
@PostMapping(value = "/goods/sku/type/list") |
F |
27 |
Result typeList( @RequestBody(required = false) GoodsSkuDto goodsSkuDto); |
|
28 |
|
c65bc9
|
29 |
/**分类列表*/ |
F |
30 |
@PostMapping(value = "/goods/sku/type/list/all") |
|
31 |
Result typeListAll( @RequestBody(required = false) GoodsTypeDto goodsTypeDto); |
ad38f9
|
32 |
|
F |
33 |
/**优惠券校验接口*/ |
|
34 |
@PostMapping(value = "/goods/sku/check/coupon") |
|
35 |
Result goodsCheckType( @RequestBody(required = false) CouponCheckDto couponCheckDto); |
c3ad9a
|
36 |
|
W |
37 |
/**修改上下架*/ |
7db3b4
|
38 |
@RequestMapping(value = "/updateUp") |
c3ad9a
|
39 |
Result updateUp(@RequestBody(required = false) GoodsSkuDto goodsSkuDto); |
2f0c34
|
40 |
|
F |
41 |
/**分类列表*/ |
|
42 |
@RequestMapping(value = "/goods/sku/type/select/list") |
|
43 |
Result goodsSkuTypeList(@RequestBody(required = false) GoodsTypeDto goodsTypeDto); |
7d6dd0
|
44 |
|
F |
45 |
/** 根据phisId查询商品sku */ |
|
46 |
@RequestMapping(value = "/goods/sku/selectGoodsSkuByHisId") |
30fe5c
|
47 |
Result selectGoodsSkuByHisId(@RequestBody(required = false) GoodsSkuDto goodsSkuDto); |
4984e6
|
48 |
|
W |
49 |
/** 根据phisId查询商品sku */ |
|
50 |
@RequestMapping(value = "/goods/sku/findGoodsByHisIdOne") |
|
51 |
Result findGoodsByHisIdOne(@RequestBody GoodsSkuDto goodsSkuDto); |
995edc
|
52 |
} |