提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.PageDto; |
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
|
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
|
8 |
import org.springframework.web.bind.annotation.RequestParam; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
|
13 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "consumables") |
|
14 |
public interface SConsumablesService { |
|
15 |
|
|
16 |
/** |
|
17 |
* 获取耗材详情 |
|
18 |
* @param consumablesId 耗材标识 |
|
19 |
* @return Result |
|
20 |
*/ |
|
21 |
@PostMapping(value = "/consumables/detail") |
|
22 |
Result getConsumablesDetail(@RequestParam("consumablesId") String consumablesId); |
|
23 |
|
|
24 |
/** |
|
25 |
* 获取耗材列表 |
|
26 |
* @return Result |
|
27 |
*/ |
|
28 |
@PostMapping(value = "/consumables/page/list") |
|
29 |
Result getConsumablesList(@RequestBody PageDto pageDto); |
|
30 |
} |