fwq
2024-02-05 adcabd701f88d4ce8892dc07c516ca1d0a9e308b
提交 | 用户 | 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);
743a0a 38
F 39     /**
40      * 获取优惠券商品列表
41      * @return Result
42      */
43     @PostMapping(value = "/consumables/coupon/list")
44     Result getConsumablesCouponList(@RequestBody PageDto pageDto);
eddc4b 45
F 46     /** 检查优惠券商品是否可购买 */
171ddc 47     @PostMapping(value = "/check/consumables/coupon/isBuy")
eddc4b 48     Result checkConsumablesCouponIsBuy(@RequestBody ConsumablesDto dto);
7c680b 49 }