ANDRU-PC\Andru
2022-08-05 4b80909d92578ff99113c3fe9c2f9de8640d15b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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);
}