fwq
2022-10-19 c65bc942b517f48b9758b5fb0fa1681b4f16e549
提交 | 用户 | 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;
995edc 6 import org.springframework.cloud.openfeign.FeignClient;
W 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 = "/crmp",contextId = "crm-goods-sku")
14 public interface FGoodsSkuService {
15
fb7d61 16     /**sku列表*/
995edc 17     @PostMapping(value = "/goods/sku/list")
W 18     Result list( @RequestBody(required = false) GoodsSkuDto goodsSkuDto);
19
c65bc9 20     /**sku分类列表*/
fb7d61 21     @PostMapping(value = "/goods/sku/type/list")
F 22     Result typeList( @RequestBody(required = false) GoodsSkuDto goodsSkuDto);
23
c65bc9 24     /**分类列表*/
F 25     @PostMapping(value = "/goods/sku/type/list/all")
26     Result typeListAll( @RequestBody(required = false) GoodsTypeDto goodsTypeDto);
995edc 27 }