fwq
2022-07-22 f5bce1128a4b9c8ccc0eb636747d060ce93e3135
提交 | 用户 | age
53c2cd 1 package com.hz.his.feign.service;
L 2
3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.PageDto;
f5bce1 5 import com.hz.his.dto.label.LabelTypePageDto;
53c2cd 6 import org.springframework.cloud.openfeign.FeignClient;
L 7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9
10 /**
11  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
12  */
13 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "label")
14 public interface SLabelService {
15
16
17     /**
18      * 获取标签分类列表
19      * @return Result
20      */
21     @PostMapping(value = "/label/type/list")
f5bce1 22     Result getLabelTypeList(@RequestBody(required = false) LabelTypePageDto labelTypePageDto);
53c2cd 23
L 24     /**
25      * 获取标签分类列表
26      * @return Result
27      */
28     @PostMapping(value = "/label/info/list")
29     Result getLabelInfoList(@RequestBody(required = false)PageDto pageDto);
30
31 }