提交 | 用户 | age
|
53c2cd
|
1 |
package com.hz.his.feign.service; |
L |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.PageDto; |
|
5 |
import com.hz.phis.dt.label.LabelTypePageDt; |
|
6 |
import org.springframework.cloud.openfeign.FeignClient; |
|
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") |
|
22 |
Result getLabelTypeList(@RequestBody(required = false) LabelTypePageDt pageDt); |
|
23 |
|
|
24 |
/** |
|
25 |
* 获取标签分类列表 |
|
26 |
* @return Result |
|
27 |
*/ |
|
28 |
@PostMapping(value = "/label/info/list") |
|
29 |
Result getLabelInfoList(@RequestBody(required = false)PageDto pageDto); |
|
30 |
|
|
31 |
} |