ANDRU-PC\Andru
2023-03-17 6c3ca6355c50d5d29e1cd7796ebb909477927e7d
提交 | 用户 | 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;
bcba89 12
A 13 /**
14  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
15  */
16 @FeignClient(name="dcp-rules-service",path = "/dcp-rules",contextId = "userTagInfo")
17 public interface SUserTagInfoService {
18
6c3ca6 19     /** 标签分类树型列表 */
A 20     @PostMapping("/tag/rule/info/list/tree")
21     Result listTreeData();
22
bcba89 23     /**查询用户标签列表*/
4b8090 24     @PostMapping("/user/tag/info/list")
A 25     Result userTagInfoListData(@RequestBody UserTagInfoDto userTagInfoDto);
bcba89 26
812cb5 27     /**查询用户标签用户列表 返回(FilterUserDto)*/
d9448f 28     @RequestMapping("/user/tag/info/user/list")
A 29     Result userListData(@RequestBody UserTagInfoDto userTagInfoDto);
30
bcba89 31     /**
A 32      * 编辑用户标签 添加 编辑 删除  三合一接口
33      * 数据案例:
34      * {
35      *     (预约用户id)"userId": "3816410df04411ebb06bb8599f4cafbe",
36      *     (来源操作的平台名称)"sourceType": "phis",
37      *     (修改添加的数据)"editUserTagInfoList": [{
38      *             (是否自定义标签 否)"isCustom": 0,
39      *             (标签类型编号)"typeNo": "constellation",
40      *             (标签编号)"tagNo": "LA20220506bRnJDj"
41      *                },
42      *        {
43      *             (是否自定义标签 是)"isCustom": 1,
44      *             (标签类型编号 没有类型可以为空或不传)"typeNo": "constellation",
45      *             (标签编号)"tagName": "牛马座"
46      *        }
47      *     ],
48      *     (删除的数据id)"deleteUserTagInfoIdList": ["62d91ec5776bca1873344066"]
49      * }
50      */
4b8090 51     @PostMapping(value = "/user/tag/info/edit")
488b47 52     Result edit(@RequestBody JSONObject data);
bcba89 53
A 54
55     /**标签分类树形数据  数据案例:{"ascription":["customer","project","product","card","employee","promotion"]}*/
4b8090 56     @PostMapping("/tag/rule/info/tree/data")
488b47 57     Result tagTypeTreeData(@RequestBody JSONObject data);
bcba89 58
A 59     /**标签列表*/
4b8090 60     @PostMapping("/tag/rule/item/list")
A 61     Result tagInfoListData(@RequestBody TagRuleInfoItemDto tagRuleInfoItemDto);
60c8ab 62
A 63     /**标签分类数据列表*/
64     @PostMapping("/tag/rule/info/list")
60a783 65     Result listData(@RequestBody TagRuleInfoDto tagRuleInfoDto);
bcba89 66 }