ANDRU-PC\Andru
2023-02-28 3f6a30ac395e94ecedbef22c532c860ca267fed6
提交 | 用户 | 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;
3f6a30 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
20     /**查询用户标签列表*/
4b8090 21     @PostMapping("/user/tag/info/list")
A 22     Result userTagInfoListData(@RequestBody UserTagInfoDto userTagInfoDto);
bcba89 23
812cb5 24     /**查询用户标签用户列表 返回(FilterUserDto)*/
d9448f 25     @RequestMapping("/user/tag/info/user/list")
A 26     Result userListData(@RequestBody UserTagInfoDto userTagInfoDto);
27
bcba89 28     /**
A 29      * 编辑用户标签 添加 编辑 删除  三合一接口
30      * 数据案例:
31      * {
32      *     (预约用户id)"userId": "3816410df04411ebb06bb8599f4cafbe",
33      *     (来源操作的平台名称)"sourceType": "phis",
34      *     (修改添加的数据)"editUserTagInfoList": [{
35      *             (是否自定义标签 否)"isCustom": 0,
36      *             (标签类型编号)"typeNo": "constellation",
37      *             (标签编号)"tagNo": "LA20220506bRnJDj"
38      *                },
39      *        {
40      *             (是否自定义标签 是)"isCustom": 1,
41      *             (标签类型编号 没有类型可以为空或不传)"typeNo": "constellation",
42      *             (标签编号)"tagName": "牛马座"
43      *        }
44      *     ],
45      *     (删除的数据id)"deleteUserTagInfoIdList": ["62d91ec5776bca1873344066"]
46      * }
47      */
4b8090 48     @PostMapping(value = "/user/tag/info/edit")
488b47 49     Result edit(@RequestBody JSONObject data);
bcba89 50
A 51
52     /**标签分类树形数据  数据案例:{"ascription":["customer","project","product","card","employee","promotion"]}*/
4b8090 53     @PostMapping("/tag/rule/info/tree/data")
488b47 54     Result tagTypeTreeData(@RequestBody JSONObject data);
bcba89 55
A 56     /**标签列表*/
4b8090 57     @PostMapping("/tag/rule/item/list")
A 58     Result tagInfoListData(@RequestBody TagRuleInfoItemDto tagRuleInfoItemDto);
60c8ab 59
A 60     /**标签分类数据列表*/
61     @PostMapping("/tag/rule/info/list")
60a783 62     Result listData(@RequestBody TagRuleInfoDto tagRuleInfoDto);
3f6a30 63
A 64     /**同步用户标签数据*/
65     @PostMapping("/test/handlerSyncUserLabelInfo")
66     Result handlerSyncUserLabelInfo(@RequestParam("userId") String userId);
bcba89 67 }