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