| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
| | | */ |
| | | @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "limit") |
| | | @FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "limit") |
| | | public interface SLimitService { |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping(value = "/goods/limit") |
| | | Result getLimitInfo(@RequestParam("limitId") String limitId); |
| | | |
| | | |
| | | /** |
| | | * 获取限购数量 |
| | | * @param commonId 公共标识 |
| | | * @return Result |
| | | */ |
| | | @PostMapping(value = "/goods/limit/one") |
| | | Result getLimitTotal(@RequestParam("commonId") String commonId); |
| | | |
| | | /** |
| | | * 获取平台限制信息 |
| | |
| | | Result getShopLimit(@RequestParam("limitId") String limitId, @RequestParam("shopId") String shopId); |
| | | |
| | | /** |
| | | * 获取用户类别店限制信息 |
| | | * @param limitId 商品标识 |
| | | * @param userHisId 用户id |
| | | * @return Result |
| | | */ |
| | | @PostMapping(value = "/goods/userType/limit") |
| | | Result getUserTypeLimit(@RequestParam("limitId") String limitId, @RequestParam("userHisId") String userHisId); |
| | | |
| | | /** |
| | | * 获取商品会员限制信息 |
| | | * @param limitId 商品标识 |
| | | * @param userId 用户标识 |
| | |
| | | /**查询是否可上架*/ |
| | | @PostMapping(value = "/goods/check/limit") |
| | | Result getCheckSku(@RequestBody LimitDto limitDto); |
| | | |
| | | |
| | | /** |
| | | * 商品标识数组获取门店数组 |
| | | * @param skuIds 商品标识数组 |
| | | * @return Result |
| | | */ |
| | | @PostMapping(value = "/goods/shop/ids") |
| | | Result getShopHisIds(@RequestBody List<String> skuIds); |
| | | |
| | | } |