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