crm-platform-feign/src/main/java/com/hz/sms/dto/GoodsSkuDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/sms/dto/OrderRefundDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/sms/dto/PageDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/sms/dto/UserDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/sms/feign/FGoodsSkuService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/sms/feign/FOderRefundService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/sms/feign/FUserService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
crm-platform-feign/src/main/java/com/hz/sms/dto/GoodsSkuDto.java
New file @@ -0,0 +1,20 @@ package com.hz.sms.dto; import lombok.Data; /** * 商品sku * */ @Data public class GoodsSkuDto extends PageDto{ /**编号*/ private String codeNo; /**搜索*/ private String keyWord; /**商品类型*/ private Integer goodsType; } crm-platform-feign/src/main/java/com/hz/sms/dto/OrderRefundDto.java
New file @@ -0,0 +1,28 @@ package com.hz.sms.dto; import lombok.Data; import java.math.BigDecimal; /** * 订单退款 * @author wzh */ @Data public class OrderRefundDto { /**订单id*/ private String orderId; /**退款需退现金金额*/ private BigDecimal amount; /**退款储值金金额(只更新数据,不操作退款)*/ private BigDecimal recharge; /**退款增值金金额(只更新数据,不操作退款)*/ private BigDecimal increment; /**退款积分数量(只更新数据,不操作退款)*/ private BigDecimal integral; /**退款备注*/ private String cancelInfo; } crm-platform-feign/src/main/java/com/hz/sms/dto/PageDto.java
New file @@ -0,0 +1,83 @@ package com.hz.sms.dto; /** * @author ChenJiaHe * 分页扩展类*/ public class PageDto { /**当前页数*/ private Integer pageNum; /**当前页显示条数*/ private Integer pageSize; /**关键字*/ private String keyWord; /**上级标识*/ private String parentId; /**分类标识*/ private String typeId; public Integer getPageNum() { if(this.pageNum == null || this.pageNum < 0){ this.pageNum = 1; } return this.pageNum; } public Integer getPageNum(Integer pageNum) { if(pageNum != null){ this.pageNum = pageNum; }else{ this.pageNum = getPageNum(); } return this.pageNum; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } public Integer getPageSize() { if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 500){ this.pageSize = 20; } return this.pageSize; } public Integer getPageSize(Integer pageSize) { if(pageSize != null){ this.pageSize = pageSize; }else{ this.pageSize = getPageSize(); } return this.pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public String getKeyWord() { return keyWord; } public void setKeyWord(String keyWord) { this.keyWord = keyWord; } public String getParentId() { return parentId; } public void setParentId(String parentId) { this.parentId = parentId; } public String getTypeId() { return typeId; } public void setTypeId(String typeId) { this.typeId = typeId; } } crm-platform-feign/src/main/java/com/hz/sms/dto/UserDto.java
New file @@ -0,0 +1,20 @@ package com.hz.sms.dto; import lombok.Data; /** * 用户dto * */ @Data public class UserDto { /**编号*/ private String ciq; /**搜索*/ private String hisId; /**商品类型*/ private Integer tel; } crm-platform-feign/src/main/java/com/hz/sms/feign/FGoodsSkuService.java
New file @@ -0,0 +1,19 @@ package com.hz.sms.feign; import com.hx.resultTool.Result; import com.hz.sms.dto.GoodsSkuDto; import com.hz.sms.dto.UserDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="crm-platform-service",path = "/crmp",contextId = "crm-goods-sku") public interface FGoodsSkuService { @PostMapping(value = "/goods/sku/list") Result list( @RequestBody(required = false) GoodsSkuDto goodsSkuDto); } crm-platform-feign/src/main/java/com/hz/sms/feign/FOderRefundService.java
New file @@ -0,0 +1,19 @@ package com.hz.sms.feign; import com.hx.resultTool.Result; import com.hz.sms.dto.GoodsSkuDto; import com.hz.sms.dto.OrderRefundDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="crm-platform-service",path = "/crmp",contextId = "crm-order-refund") public interface FOderRefundService { @PostMapping(value = "/order/refund/refundAmount") Result list( @RequestBody(required = false) OrderRefundDto orderRefundDto); } crm-platform-feign/src/main/java/com/hz/sms/feign/FUserService.java
New file @@ -0,0 +1,19 @@ package com.hz.sms.feign; import com.hx.resultTool.Result; import com.hz.sms.dto.SmsSendDto; import com.hz.sms.dto.UserDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="crm-platform-service",path = "/crmp",contextId = "crm-user") public interface FUserService { @PostMapping(value = "/user/info") Result list( @RequestBody(required = false) UserDto userDto); }