wangrenhuang
2023-05-22 9f29abe0654aa7c5566883329395f6ee22877ead
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.PageDto;
f5bce1 5 import com.hz.his.dto.promotion.PromotionDto;
7c680b 6 import org.springframework.cloud.openfeign.FeignClient;
C 7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9 import org.springframework.web.bind.annotation.RequestParam;
10
11 /**
12  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
13  */
14 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "promotion")
15 public interface SPromotionService {
16
17     /**
18      * 获取促销详情
19      * @param promotionId 促销标识
20      * @return Result
21      */
22     @PostMapping(value = "/promotion/detail")
23     Result getPromotionDetail(@RequestParam("promotionId") String promotionId);
24
25
26     /**
27      * 获取促的商品
28      * @param id 促销标识
29      * @return Result
30      */
31     @PostMapping(value = "/promotion/goods")
32     Result getPromotionGoods(@RequestParam("id") String id);
33
34     /**
35      * 获取促销列表
36      * @return Result
37      */
38     @PostMapping(value = "/promotion/page/list")
39     Result getPromotionList(@RequestBody PageDto pageDto);
40
ec3c21 41     /**获取促销更新列表*/
bede9e 42     @PostMapping(value = "/promotion/update/list")
f5bce1 43     Result getUpdatePromotion(@RequestBody PromotionDto promotionDto);
7c680b 44 }