package com.hz.his.feign.service; import com.hx.resultTool.Result; import com.hz.his.dto.PageDto; import com.hz.phis.dt.TimeDt; import com.hz.phis.dt.project.ProjectDt; 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; import java.util.List; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "project") public interface SProjectService { /** * 获取项目spu详情 * @param projectId 公共标识 * @return Result */ @PostMapping(value = "/project/spu/detail") Result getProjectSpuDetail(@RequestParam("projectId") String projectId); /** * 获取项目sku详情 * @param projectId 公共标识 * @return Result */ @PostMapping(value = "/project/sku/detail") Result getProjectSkuDetail(@RequestParam("projectId") String projectId); /** * 获取项目sku列表 * @param spuId 公共标识 * @return Result */ @PostMapping(value = "/project/sku/spuId/list") List getSkuListBySpuId(@RequestParam("spuId") String spuId); /** * 获取项目列表 * @return Result */ @PostMapping(value = "/project/page/list") Result getProjectList(@RequestBody PageDto pageDto); /** * 获取项目门店价格列表 * @return Result */ @PostMapping(value = "/project/sku/getProjectShopPrice") Result getProjectShopPrice(@RequestBody String id); /** * 获取项目门店价格更新 * @return Result */ @PostMapping(value = "/project/sku/shop/price/update") Result getUpdateShopPrice(@RequestBody TimeDt timeDt); /** * 获取项目sku列表(同步使用) * @return Result */ @PostMapping(value = "/project/page/sku/update") Result getUpdateProject(@RequestBody ProjectDt projectDt); /** * 获取项目spu列表(同步使用) * @return Result */ @PostMapping(value = "/project/page/spu/update") Result getUpdateSpuProject(@RequestBody ProjectDt projectDt); }