fwq
2022-08-08 488b475c1f574b26b5f4f4d5ea928f0d33e1d641
提交 | 用户 | 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;
A 5 import com.hz.his.dto.dcp.TagRuleInfoItemDto;
6 import com.hz.his.dto.dcp.UserTagInfoDto;
7 import org.springframework.cloud.openfeign.FeignClient;
4b8090 8 import org.springframework.web.bind.annotation.PostMapping;
bcba89 9 import org.springframework.web.bind.annotation.RequestBody;
A 10
11 /**
12  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
13  */
14 @FeignClient(name="dcp-rules-service",path = "/dcp-rules",contextId = "userTagInfo")
15 public interface SUserTagInfoService {
16
17     /**查询用户标签列表*/
4b8090 18     @PostMapping("/user/tag/info/list")
A 19     Result userTagInfoListData(@RequestBody UserTagInfoDto userTagInfoDto);
bcba89 20
A 21     /**
22      * 编辑用户标签 添加 编辑 删除  三合一接口
23      * 数据案例:
24      * {
25      *     (预约用户id)"userId": "3816410df04411ebb06bb8599f4cafbe",
26      *     (来源操作的平台名称)"sourceType": "phis",
27      *     (修改添加的数据)"editUserTagInfoList": [{
28      *             (是否自定义标签 否)"isCustom": 0,
29      *             (标签类型编号)"typeNo": "constellation",
30      *             (标签编号)"tagNo": "LA20220506bRnJDj"
31      *                },
32      *        {
33      *             (是否自定义标签 是)"isCustom": 1,
34      *             (标签类型编号 没有类型可以为空或不传)"typeNo": "constellation",
35      *             (标签编号)"tagName": "牛马座"
36      *        }
37      *     ],
38      *     (删除的数据id)"deleteUserTagInfoIdList": ["62d91ec5776bca1873344066"]
39      * }
40      */
4b8090 41     @PostMapping(value = "/user/tag/info/edit")
488b47 42     Result edit(@RequestBody JSONObject data);
bcba89 43
A 44
45     /**标签分类树形数据  数据案例:{"ascription":["customer","project","product","card","employee","promotion"]}*/
4b8090 46     @PostMapping("/tag/rule/info/tree/data")
488b47 47     Result tagTypeTreeData(@RequestBody JSONObject data);
bcba89 48
A 49     /**标签列表*/
4b8090 50     @PostMapping("/tag/rule/item/list")
A 51     Result tagInfoListData(@RequestBody TagRuleInfoItemDto tagRuleInfoItemDto);
bcba89 52 }