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