package com.hz.his.feign.service;
|
|
import com.hx.resultTool.Result;
|
import com.hz.his.dto.limit.LimitDto;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
|
*/
|
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "limit")
|
public interface SLimitService {
|
|
/**
|
* 获取所有限制信息
|
* @param limitId 限制标识
|
* @return Result
|
*/
|
@PostMapping(value = "/goods/limit")
|
Result getLimitInfo(@RequestParam("limitId") String limitId);
|
|
/**
|
* 获取平台限制信息
|
* @param limitId 限制标识
|
* @return Result
|
*/
|
@PostMapping(value = "/goods/platform/limit")
|
Result getPlatLimit(@RequestParam("limitId") String limitId);
|
|
/**
|
* 获取商品门店限制信息
|
* @param limitId 商品标识
|
* @param shopId 门店标识
|
* @return Result
|
*/
|
@PostMapping(value = "/goods/shop/limit")
|
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 用户标识
|
* @return Result
|
*/
|
@PostMapping(value = "/goods/level/limit")
|
Result getLevelLimit(@RequestParam("limitId") String limitId, @RequestParam("userId") String userId);
|
|
/**获取更新限制*/
|
@PostMapping(value = "/goods/update/limit")
|
Result getUpdateList(@RequestBody LimitDto limitDto);
|
|
/**查询是否可上架*/
|
@PostMapping(value = "/goods/check/limit")
|
Result getCheckSku(@RequestBody LimitDto limitDto);
|
}
|