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