提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
f5bce1
|
4 |
import com.hz.his.dto.limit.LimitDto; |
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 |
|
8a82d5
|
10 |
import java.util.List; |
W |
11 |
|
7c680b
|
12 |
/** |
C |
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "limit") |
|
16 |
public interface SLimitService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取所有限制信息 |
|
20 |
* @param limitId 限制标识 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/goods/limit") |
|
24 |
Result getLimitInfo(@RequestParam("limitId") String limitId); |
|
25 |
|
|
26 |
/** |
|
27 |
* 获取平台限制信息 |
|
28 |
* @param limitId 限制标识 |
|
29 |
* @return Result |
|
30 |
*/ |
|
31 |
@PostMapping(value = "/goods/platform/limit") |
|
32 |
Result getPlatLimit(@RequestParam("limitId") String limitId); |
|
33 |
|
|
34 |
/** |
|
35 |
* 获取商品门店限制信息 |
|
36 |
* @param limitId 商品标识 |
|
37 |
* @param shopId 门店标识 |
|
38 |
* @return Result |
|
39 |
*/ |
|
40 |
@PostMapping(value = "/goods/shop/limit") |
|
41 |
Result getShopLimit(@RequestParam("limitId") String limitId, @RequestParam("shopId") String shopId); |
|
42 |
|
|
43 |
/** |
d50af4
|
44 |
* 获取用户类别店限制信息 |
W |
45 |
* @param limitId 商品标识 |
|
46 |
* @param userHisId 用户id |
|
47 |
* @return Result |
|
48 |
*/ |
|
49 |
@PostMapping(value = "/goods/userType/limit") |
|
50 |
Result getUserTypeLimit(@RequestParam("limitId") String limitId, @RequestParam("userHisId") String userHisId); |
|
51 |
|
|
52 |
/** |
7c680b
|
53 |
* 获取商品会员限制信息 |
C |
54 |
* @param limitId 商品标识 |
|
55 |
* @param userId 用户标识 |
|
56 |
* @return Result |
|
57 |
*/ |
|
58 |
@PostMapping(value = "/goods/level/limit") |
|
59 |
Result getLevelLimit(@RequestParam("limitId") String limitId, @RequestParam("userId") String userId); |
|
60 |
|
bede9e
|
61 |
/**获取更新限制*/ |
F |
62 |
@PostMapping(value = "/goods/update/limit") |
f5bce1
|
63 |
Result getUpdateList(@RequestBody LimitDto limitDto); |
1a95bb
|
64 |
|
W |
65 |
/**查询是否可上架*/ |
|
66 |
@PostMapping(value = "/goods/check/limit") |
f5bce1
|
67 |
Result getCheckSku(@RequestBody LimitDto limitDto); |
8a82d5
|
68 |
|
W |
69 |
|
|
70 |
/** |
|
71 |
* 商品标识数组获取门店数组 |
|
72 |
* @param skuIds 商品标识数组 |
|
73 |
* @return Result |
|
74 |
*/ |
|
75 |
@PostMapping(value = "/goods/shop/ids") |
|
76 |
Result getShopHisIds(@RequestBody List<String> skuIds); |
|
77 |
|
7c680b
|
78 |
} |