package com.hz.crm.feign.goods;
|
|
import com.hx.resultTool.Result;
|
import com.hz.crm.vo.goods.GoodsTypeListVo;
|
import com.hz.crm.vo.goods.integral.IntegralGoodsDetailVo;
|
import com.hz.crm.vo.goods.integral.IntegralGoodsListVo;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
/**
|
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
|
* @author CJH
|
*/
|
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-integral-goods")
|
public interface FIntegralGoodsService {
|
|
/**
|
* 获取商品类型列表
|
* @param integralGoodsListVo 参数
|
* @return data返回Map<String, Object>集合,具体参数看代码
|
*/
|
@PostMapping(value = "/integral/goods/list")
|
Result list( @RequestBody IntegralGoodsListVo integralGoodsListVo);
|
|
/**
|
* 获取商品详情
|
* @param goodsDetailDto 参数
|
* @return data返回Map<String, Object>,具体参数看代码
|
*/
|
@PostMapping(value = "/integral/goods/detail")
|
Result detail( @RequestBody IntegralGoodsDetailVo goodsDetailDto);
|
|
/**
|
* SKU规格库存数据
|
* @param goodsDetailDto 参数
|
* @return data返回Map<String, Object>,具体参数看代码
|
*/
|
@PostMapping(value = "/integral/goods/sku/stock")
|
Result stockData( @RequestBody IntegralGoodsDetailVo goodsDetailDto);
|
|
}
|