crm-platform-feign/src/main/java/com/hz/crm/feign/goods/FGoodsTypeService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/feign/goods/FIntegralGoodsService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/vo/goods/GoodsTypeListVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/vo/goods/integral/IntegralGoodsDetailVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/vo/goods/integral/IntegralGoodsListVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/vo/order/ConfirmGoodsVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/vo/order/OrderConfirmVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
crm-platform-feign/src/main/java/com/hz/crm/feign/goods/FGoodsTypeService.java
New file @@ -0,0 +1,25 @@ package com.hz.crm.feign.goods; import com.hx.resultTool.Result; import com.hz.crm.dto.GoodsSkuDto; import com.hz.crm.vo.goods.GoodsTypeListVo; 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-goods-type") public interface FGoodsTypeService { /** * 获取商品类型列表 * @param goodsTypeListVo 参数 * @return data返回 GoodsType集合 */ @PostMapping(value = "/goods/sku/type/list") Result list( @RequestBody GoodsTypeListVo goodsTypeListVo); } crm-platform-feign/src/main/java/com/hz/crm/feign/goods/FIntegralGoodsService.java
New file @@ -0,0 +1,42 @@ 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); } crm-platform-feign/src/main/java/com/hz/crm/vo/goods/GoodsTypeListVo.java
New file @@ -0,0 +1,20 @@ package com.hz.crm.vo.goods; import lombok.Data; /** * @author CJH */ @Data public class GoodsTypeListVo { /***展示区域(0:商城展示1:积分商城展示2:专区展示)*/ private Integer area; /**展示区域-商城*/ public static final int AREA_GOODS = 0; /**展示区域-积分*/ public static final int AREA_INTEGRAL = 1; /**展示区域-专区*/ public static final int AREA_ZONE = 2; } crm-platform-feign/src/main/java/com/hz/crm/vo/goods/integral/IntegralGoodsDetailVo.java
New file @@ -0,0 +1,21 @@ package com.hz.crm.vo.goods.integral; import lombok.Data; /** * 商品新增扩展 * * @author CJH*/ @Data public class IntegralGoodsDetailVo{ /**SPU标识/其他*/ private String id; /**子标识*/ private String sonId; /**门店编号*/ private String shopNo; } crm-platform-feign/src/main/java/com/hz/crm/vo/goods/integral/IntegralGoodsListVo.java
New file @@ -0,0 +1,27 @@ package com.hz.crm.vo.goods.integral; import com.hz.crm.dto.PageDto; import lombok.Data; /** * @author CJH */ @Data public class IntegralGoodsListVo extends PageDto { /**商品分类id*/ private String goodsTypeId; /**门店编号*/ private String shopNo; /***来源模块*/ private Integer sourceModule; /***价格排序 0无,1大到小,2小到大*/ private Integer priceSort; /***销量排序 0无,1大到小,2小到大*/ private Integer saleNumSort; /***是否首页推荐 0否,1是*/ private Integer recommend; } crm-platform-feign/src/main/java/com/hz/crm/vo/order/ConfirmGoodsVo.java
New file @@ -0,0 +1,16 @@ package com.hz.crm.vo.order; import lombok.Data; /** * @author CJH */ @Data public class ConfirmGoodsVo { /**商品SKU标识*/ private String skuId; /**购买数量*/ private Integer buyNum; } crm-platform-feign/src/main/java/com/hz/crm/vo/order/OrderConfirmVo.java
New file @@ -0,0 +1,24 @@ package com.hz.crm.vo.order; import lombok.Data; import java.util.List; /**预约下单专用 * @author CJH */ @Data public class OrderConfirmVo { /**门店编码*/ private String shopNo; /**预约-用户标识*/ private String hisUserId; /**生日,格式:yyyy-MM-dd*/ private String birthday; /**确认商品*/ private List<ConfirmGoodsVo> goodsList; /**备注*/ private String remark; }