提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import org.springframework.cloud.openfeign.FeignClient; |
|
5 |
import org.springframework.web.bind.annotation.PostMapping; |
|
6 |
import org.springframework.web.bind.annotation.RequestParam; |
|
7 |
|
|
8 |
/** |
|
9 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
10 |
*/ |
|
11 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "limit") |
|
12 |
public interface SLimitService { |
|
13 |
|
|
14 |
/** |
|
15 |
* 获取所有限制信息 |
|
16 |
* @param limitId 限制标识 |
|
17 |
* @return Result |
|
18 |
*/ |
|
19 |
@PostMapping(value = "/goods/limit") |
|
20 |
Result getLimitInfo(@RequestParam("limitId") String limitId); |
|
21 |
|
|
22 |
/** |
|
23 |
* 获取平台限制信息 |
|
24 |
* @param limitId 限制标识 |
|
25 |
* @return Result |
|
26 |
*/ |
|
27 |
@PostMapping(value = "/goods/platform/limit") |
|
28 |
Result getPlatLimit(@RequestParam("limitId") String limitId); |
|
29 |
|
|
30 |
/** |
|
31 |
* 获取商品门店限制信息 |
|
32 |
* @param limitId 商品标识 |
|
33 |
* @param shopId 门店标识 |
|
34 |
* @return Result |
|
35 |
*/ |
|
36 |
@PostMapping(value = "/goods/shop/limit") |
|
37 |
Result getShopLimit(@RequestParam("limitId") String limitId, @RequestParam("shopId") String shopId); |
|
38 |
|
|
39 |
/** |
|
40 |
* 获取商品会员限制信息 |
|
41 |
* @param limitId 商品标识 |
|
42 |
* @param userId 用户标识 |
|
43 |
* @return Result |
|
44 |
*/ |
|
45 |
@PostMapping(value = "/goods/level/limit") |
|
46 |
Result getLevelLimit(@RequestParam("limitId") String limitId, @RequestParam("userId") String userId); |
|
47 |
|
|
48 |
} |