wangrenhuang
2023-06-25 200f72a65bc07ad764450e08b8640f3ead9e6d97
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3
4 import com.hx.resultTool.Result;
f5bce1 5 import com.hz.his.dto.TimeDto;
F 6 import com.hz.his.dto.shop.ShopDto;
7c680b 7 import org.springframework.cloud.openfeign.FeignClient;
C 8 import org.springframework.web.bind.annotation.PostMapping;
9 import org.springframework.web.bind.annotation.RequestBody;
10 import org.springframework.web.bind.annotation.RequestParam;
11
12 /**
13  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
14  */
15 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "shop")
16 public interface SShopService {
17
18     /**
19      * 获取门店详情
20      * @param shopId 门店标识
21      * @return Result
22      */
23     @PostMapping(value = "/shop/detail")
24     Result getShopDetail(@RequestParam("shopId") String shopId);
25
26     /**
27      * 获取门店列表
28      * @return Result
29      */
30     @PostMapping(value = "/shop/page/list")
f5bce1 31     Result getShopList(@RequestBody ShopDto shopDto);
7c680b 32
C 33     /**
ec3c21 34      * 获取门店更新列表
7c680b 35      * @return Result
C 36      */
37     @PostMapping(value = "/shop/list")
f5bce1 38     Result getList(@RequestBody TimeDto timeDto);
200f72 39
W 40
41     /**
42      * 获取门店详情返回vo
43      * @return Result
44      */
45     @PostMapping(value = "/shop/detail/vo")
46     Result getShopDetailVo(@RequestBody ShopDto shopDto);
7c680b 47 }