package com.hz.his.feign.service;
|
|
import com.hx.resultTool.Result;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
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 userId 用户标识
|
* @return Result
|
*/
|
@PostMapping(value = "/goods/level/limit")
|
Result getLevelLimit(@RequestParam("limitId") String limitId, @RequestParam("userId") String userId);
|
|
}
|