wangrenhuang
2023-03-23 fcf8b677cf0a8165da424b642a9ade51aa91e7e9
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.PageDto;
f5bce1 5 import com.hz.his.dto.consumables.ConsumablesDto;
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     /**
ec3c21 33      * 获取耗材更新列表
bede9e 34      * @return Result
F 35      */
36     @PostMapping(value = "/consumables/update/list")
f5bce1 37     Result getUpdateConsumables(@RequestBody ConsumablesDto consumablesDto);
7c680b 38 }