fhx
2024-04-16 8bb9c77d61c0d20e8a06e9185bf0a89a16dd6be2
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
53c2cd 2
L 3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.PageDto;
f5bce1 5 import com.hz.his.dto.label.LabelTypePageDto;
a8ccd0 6 import com.hz.his.vo.label.LabelFindVo;
53c2cd 7 import org.springframework.cloud.openfeign.FeignClient;
L 8 import org.springframework.web.bind.annotation.PostMapping;
9 import org.springframework.web.bind.annotation.RequestBody;
10
11 /**
12  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
13  */
14 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "label")
15 public interface SLabelService {
16
17
18     /**
19      * 获取标签分类列表
20      * @return Result
21      */
22     @PostMapping(value = "/label/type/list")
f5bce1 23     Result getLabelTypeList(@RequestBody(required = false) LabelTypePageDto labelTypePageDto);
53c2cd 24
L 25     /**
26      * 获取标签分类列表
27      * @return Result
28      */
29     @PostMapping(value = "/label/info/list")
30     Result getLabelInfoList(@RequestBody(required = false)PageDto pageDto);
31
a8ccd0 32
C 33     /**
9314ee 34      * 获取标签分类树状含标签(根据范围获取)
C 35      * @return Result的data转成LabelTypeVo的集合
a8ccd0 36      */
C 37     @PostMapping(value = "/label/type/tree/by-label")
38     Result getLabelTypeTreeByLabel(@RequestBody LabelFindVo labelFindVo);
39
9314ee 40     /**根据范围获取
C 41      * 获取用户标签
42      * @return Result的data返回的格式:key值:分类标识;value:LabelVo的集合
43      */
44     @PostMapping(value = "/label/user/label")
45     Result getLabelUserLabel(@RequestBody LabelFindVo labelFindVo);
a8ccd0 46
53c2cd 47 }