fhx
2024-04-15 04f6ae9a5b7cb514672601ac2810ebb61253a5f9
提交 | 用户 | age
bcba89 1 package com.hz.his.feign.service.dcp;
A 2
488b47 3 import com.alibaba.fastjson.JSONObject;
bcba89 4 import com.hx.resultTool.Result;
60c8ab 5 import com.hz.his.dto.dcp.TagRuleInfoDto;
bcba89 6 import com.hz.his.dto.dcp.TagRuleInfoItemDto;
A 7 import com.hz.his.dto.dcp.UserTagInfoDto;
8 import org.springframework.cloud.openfeign.FeignClient;
4b8090 9 import org.springframework.web.bind.annotation.PostMapping;
bcba89 10 import org.springframework.web.bind.annotation.RequestBody;
d9448f 11 import org.springframework.web.bind.annotation.RequestMapping;
c0ec22 12 import org.springframework.web.bind.annotation.RequestParam;
bcba89 13
A 14 /**
15  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
16  */
17 @FeignClient(name="dcp-rules-service",path = "/dcp-rules",contextId = "userTagInfo")
18 public interface SUserTagInfoService {
19
6c3ca6 20     /** 标签分类树型列表 */
A 21     @PostMapping("/tag/rule/info/list/tree")
22     Result listTreeData();
23
bcba89 24     /**查询用户标签列表*/
4b8090 25     @PostMapping("/user/tag/info/list")
A 26     Result userTagInfoListData(@RequestBody UserTagInfoDto userTagInfoDto);
bcba89 27
812cb5 28     /**查询用户标签用户列表 返回(FilterUserDto)*/
d9448f 29     @RequestMapping("/user/tag/info/user/list")
A 30     Result userListData(@RequestBody UserTagInfoDto userTagInfoDto);
31
bcba89 32     /**
A 33      * 编辑用户标签 添加 编辑 删除  三合一接口
34      * 数据案例:
35      * {
36      *     (预约用户id)"userId": "3816410df04411ebb06bb8599f4cafbe",
37      *     (来源操作的平台名称)"sourceType": "phis",
38      *     (修改添加的数据)"editUserTagInfoList": [{
39      *             (是否自定义标签 否)"isCustom": 0,
40      *             (标签类型编号)"typeNo": "constellation",
41      *             (标签编号)"tagNo": "LA20220506bRnJDj"
70f496 42      *          },
A 43      *          {
bcba89 44      *             (是否自定义标签 是)"isCustom": 1,
70f496 45      *             (标签类型编号)"typeNo": "constellation",
bcba89 46      *             (标签编号)"tagName": "牛马座"
A 47      *        }
48      *     ],
49      *     (删除的数据id)"deleteUserTagInfoIdList": ["62d91ec5776bca1873344066"]
50      * }
51      */
4b8090 52     @PostMapping(value = "/user/tag/info/edit")
488b47 53     Result edit(@RequestBody JSONObject data);
bcba89 54
A 55
56     /**标签分类树形数据  数据案例:{"ascription":["customer","project","product","card","employee","promotion"]}*/
4b8090 57     @PostMapping("/tag/rule/info/tree/data")
488b47 58     Result tagTypeTreeData(@RequestBody JSONObject data);
bcba89 59
A 60     /**标签列表*/
4b8090 61     @PostMapping("/tag/rule/item/list")
A 62     Result tagInfoListData(@RequestBody TagRuleInfoItemDto tagRuleInfoItemDto);
60c8ab 63
A 64     /**标签分类数据列表*/
65     @PostMapping("/tag/rule/info/list")
60a783 66     Result listData(@RequestBody TagRuleInfoDto tagRuleInfoDto);
3f6a30 67
A 68     /**同步用户标签数据*/
69     @PostMapping("/test/handlerSyncUserLabelInfo")
70     Result handlerSyncUserLabelInfo(@RequestParam("userId") String userId);
bcba89 71 }