提交 | 用户 | age
|
aae549
|
1 |
package com.hz.crm.feign.goods; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.crm.vo.goods.GoodsTypeListVo; |
|
5 |
import com.hz.crm.vo.goods.integral.IntegralGoodsDetailVo; |
|
6 |
import com.hz.crm.vo.goods.integral.IntegralGoodsListVo; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
* @author CJH |
|
14 |
*/ |
|
15 |
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-integral-goods") |
|
16 |
public interface FIntegralGoodsService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取商品类型列表 |
|
20 |
* @param integralGoodsListVo 参数 |
|
21 |
* @return data返回Map<String, Object>集合,具体参数看代码 |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/integral/goods/list") |
|
24 |
Result list( @RequestBody IntegralGoodsListVo integralGoodsListVo); |
|
25 |
|
|
26 |
/** |
|
27 |
* 获取商品详情 |
|
28 |
* @param goodsDetailDto 参数 |
|
29 |
* @return data返回Map<String, Object>,具体参数看代码 |
|
30 |
*/ |
|
31 |
@PostMapping(value = "/integral/goods/detail") |
|
32 |
Result detail( @RequestBody IntegralGoodsDetailVo goodsDetailDto); |
|
33 |
|
|
34 |
/** |
|
35 |
* SKU规格库存数据 |
|
36 |
* @param goodsDetailDto 参数 |
|
37 |
* @return data返回Map<String, Object>,具体参数看代码 |
|
38 |
*/ |
|
39 |
@PostMapping(value = "/integral/goods/sku/stock") |
|
40 |
Result stockData( @RequestBody IntegralGoodsDetailVo goodsDetailDto); |
|
41 |
|
|
42 |
} |