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