phis-feign/src/main/java/com/hz/his/dto/dcp/BaseDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/dcp/TagRuleInfoItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/dcp/UserTagInfoDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/dcp/BaseDto.java
New file @@ -0,0 +1,83 @@ package com.hz.his.dto.dcp; /** * 列表查询公共类 * */ public class BaseDto { /**页码*/ private Integer pageNum; /**每页数量*/ private Integer pageSize; /**搜索关键词*/ private String keyWord; /**查询创建时间开始时间 Y-m-d**/ private String startCreateTime; /**查询创建时间结束时间 Y-m-d**/ private String endCreateTime; /**查询更新时间开始时间 Y-m-d**/ private String startUpdateTime; /**查询更新时间结束时间 Y-m-d**/ private String endUpdateTime; public BaseDto() { } public Integer getPageNum() { return pageNum; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } public Integer getPageSize() { return pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public String getKeyWord() { return keyWord; } public void setKeyWord(String keyWord) { this.keyWord = keyWord; } public String getStartCreateTime() { return startCreateTime; } public void setStartCreateTime(String startCreateTime) { this.startCreateTime = startCreateTime; } public String getEndCreateTime() { return endCreateTime; } public void setEndCreateTime(String endCreateTime) { this.endCreateTime = endCreateTime; } public String getStartUpdateTime() { return startUpdateTime; } public void setStartUpdateTime(String startUpdateTime) { this.startUpdateTime = startUpdateTime; } public String getEndUpdateTime() { return endUpdateTime; } public void setEndUpdateTime(String endUpdateTime) { this.endUpdateTime = endUpdateTime; } } phis-feign/src/main/java/com/hz/his/dto/dcp/TagRuleInfoItemDto.java
New file @@ -0,0 +1,31 @@ package com.hz.his.dto.dcp; import lombok.Data; import lombok.EqualsAndHashCode; /** * 标签规则子项(标签)查询 dto */ @Data @EqualsAndHashCode(callSuper = true) public class TagRuleInfoItemDto extends BaseDto { /**上级标识 标签类型id*/ private String ruleId; /**id**/ private String id; /**标签名称**/ private String tagName; /**操作类型 是否上架 0 否 1 是**/ private String upType; /**范围**/ private String ascription; public TagRuleInfoItemDto() { } } phis-feign/src/main/java/com/hz/his/dto/dcp/UserTagInfoDto.java
New file @@ -0,0 +1,28 @@ package com.hz.his.dto.dcp; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = true) public class UserTagInfoDto extends BaseDto{ /**用户标识符*/ private String userId; /**用户编号*/ private String userNo; /**用户名称*/ private String userName; /**标签名称*/ private String tagName; /**标签类别*/ private String tagTypeName; public UserTagInfoDto() { } } phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java
New file @@ -0,0 +1,51 @@ package com.hz.his.feign.service.dcp; import com.hx.resultTool.Result; import com.hz.his.dto.dcp.TagRuleInfoItemDto; import com.hz.his.dto.dcp.UserTagInfoDto; 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="dcp-rules-service",path = "/dcp-rules",contextId = "userTagInfo") public interface SUserTagInfoService { /**查询用户标签列表*/ @PostMapping("/user/tag/info/list") Result userTagInfoListData(@RequestBody UserTagInfoDto userTagInfoDto); /** * 编辑用户标签 添加 编辑 删除 三合一接口 * 数据案例: * { * (预约用户id)"userId": "3816410df04411ebb06bb8599f4cafbe", * (来源操作的平台名称)"sourceType": "phis", * (修改添加的数据)"editUserTagInfoList": [{ * (是否自定义标签 否)"isCustom": 0, * (标签类型编号)"typeNo": "constellation", * (标签编号)"tagNo": "LA20220506bRnJDj" * }, * { * (是否自定义标签 是)"isCustom": 1, * (标签类型编号 没有类型可以为空或不传)"typeNo": "constellation", * (标签编号)"tagName": "牛马座" * } * ], * (删除的数据id)"deleteUserTagInfoIdList": ["62d91ec5776bca1873344066"] * } */ @PostMapping(value = "/user/tag/info/edit") Result edit(@RequestBody String data); /**标签分类树形数据 数据案例:{"ascription":["customer","project","product","card","employee","promotion"]}*/ @PostMapping("/tag/rule/info/tree/data") Result tagTypeTreeData(@RequestBody String data); /**标签列表*/ @PostMapping("/tag/rule/item/list") Result tagInfoListData(@RequestBody TagRuleInfoItemDto tagRuleInfoItemDto); }