package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import com.hz.his.dto.PageDto; import com.hz.his.dto.promotion.PromotionDto; 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 = "promotion") public interface SPromotionService { /** * 获å–促销详情 * @param promotionId ä¿ƒé”€æ ‡è¯† * @return Result */ @PostMapping(value = "/promotion/detail") Result getPromotionDetail(@RequestParam("promotionId") String promotionId); /** * 获å–ä¿ƒçš„å•†å“ * @param id ä¿ƒé”€æ ‡è¯† * @return Result */ @PostMapping(value = "/promotion/goods") Result getPromotionGoods(@RequestParam("id") String id); /** * 获å–促销列表 * @return Result */ @PostMapping(value = "/promotion/page/list") Result getPromotionList(@RequestBody PageDto pageDto); /**获å–促销更新列表*/ @PostMapping(value = "/promotion/update/list") Result getUpdatePromotion(@RequestBody PromotionDto promotionDto); }