phis-feign/src/main/java/com/hz/his/dto/user/project/DirectCannelVo.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserProjectService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/user/project/DirectCannelVo.java
New file @@ -0,0 +1,30 @@ package com.hz.his.dto.user.project; import lombok.Data; @Data public class DirectCannelVo { /**用户项目标识*/ private String id; /**操作类型*/ private Integer operateType; /**操作疗程数*/ private Integer operateNum; /**操作门店标识*/ private String shopId; /**操作员工*/ private String employeeId; /**操作员工角色*/ private String employeeRoleId; /**操作原因*/ private String remarkInfo; /**操作类型-减少/作废*/ public static final int OPERATE_TYPE_CANNEL = 0; /**操作类型-添加*/ public static final int OPERATE_TYPE_ADD = 1; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserProjectService.java
New file @@ -0,0 +1,23 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import com.hz.his.dto.user.project.DirectCannelVo; 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="phi-platform-service",path = "/phip",contextId = "userProject") public interface SUserProjectService { /** * 直接操作用户项目 * 员工直接操作 * @param directCannelVo 封装对象 * @return */ @PostMapping(value = "/user/getUserLabel") Result directCancel(@RequestBody DirectCannelVo directCannelVo); }