提交 | 用户 | 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 |
*/ |
314a4b
|
15 |
@FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "limit") |
7c680b
|
16 |
public interface SLimitService { |
C |
17 |
|
|
18 |
/** |
|
19 |
* 获取所有限制信息 |
|
20 |
* @param limitId 限制标识 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/goods/limit") |
|
24 |
Result getLimitInfo(@RequestParam("limitId") String limitId); |
|
25 |
|
02c506
|
26 |
|
F |
27 |
/** |
|
28 |
* 获取限购数量 |
|
29 |
* @param commonId 公共标识 |
|
30 |
* @return Result |
|
31 |
*/ |
|
32 |
@PostMapping(value = "/goods/limit/one") |
|
33 |
Result getLimitTotal(@RequestParam("commonId") String commonId); |
|
34 |
|
7c680b
|
35 |
/** |
C |
36 |
* 获取平台限制信息 |
|
37 |
* @param limitId 限制标识 |
|
38 |
* @return Result |
|
39 |
*/ |
|
40 |
@PostMapping(value = "/goods/platform/limit") |
|
41 |
Result getPlatLimit(@RequestParam("limitId") String limitId); |
|
42 |
|
|
43 |
/** |
|
44 |
* 获取商品门店限制信息 |
|
45 |
* @param limitId 商品标识 |
|
46 |
* @param shopId 门店标识 |
|
47 |
* @return Result |
|
48 |
*/ |
|
49 |
@PostMapping(value = "/goods/shop/limit") |
|
50 |
Result getShopLimit(@RequestParam("limitId") String limitId, @RequestParam("shopId") String shopId); |
|
51 |
|
|
52 |
/** |
d50af4
|
53 |
* 获取用户类别店限制信息 |
W |
54 |
* @param limitId 商品标识 |
|
55 |
* @param userHisId 用户id |
|
56 |
* @return Result |
|
57 |
*/ |
|
58 |
@PostMapping(value = "/goods/userType/limit") |
|
59 |
Result getUserTypeLimit(@RequestParam("limitId") String limitId, @RequestParam("userHisId") String userHisId); |
|
60 |
|
|
61 |
/** |
7c680b
|
62 |
* 获取商品会员限制信息 |
C |
63 |
* @param limitId 商品标识 |
|
64 |
* @param userId 用户标识 |
|
65 |
* @return Result |
|
66 |
*/ |
|
67 |
@PostMapping(value = "/goods/level/limit") |
|
68 |
Result getLevelLimit(@RequestParam("limitId") String limitId, @RequestParam("userId") String userId); |
|
69 |
|
bede9e
|
70 |
/**获取更新限制*/ |
F |
71 |
@PostMapping(value = "/goods/update/limit") |
f5bce1
|
72 |
Result getUpdateList(@RequestBody LimitDto limitDto); |
1a95bb
|
73 |
|
W |
74 |
/**查询是否可上架*/ |
|
75 |
@PostMapping(value = "/goods/check/limit") |
f5bce1
|
76 |
Result getCheckSku(@RequestBody LimitDto limitDto); |
8a82d5
|
77 |
|
W |
78 |
|
|
79 |
/** |
|
80 |
* 商品标识数组获取门店数组 |
|
81 |
* @param skuIds 商品标识数组 |
|
82 |
* @return Result |
|
83 |
*/ |
|
84 |
@PostMapping(value = "/goods/shop/ids") |
|
85 |
Result getShopHisIds(@RequestBody List<String> skuIds); |
|
86 |
|
7c680b
|
87 |
} |