wangrenhuang
2023-03-23 fcf8b677cf0a8165da424b642a9ade51aa91e7e9
提交 | 用户 | 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;
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 = "channels")
14 public interface SChannelsService {
15
16     /**
17      * 获取渠道详情
18      * @param channelsId 渠道标识
19      * @return Result
20      */
21     @PostMapping(value = "/channels/detail")
22     Result getChannelsDetail(@RequestParam("channelsId") String channelsId);
23
24     /**
25      * 获取渠道列表
26      * @return Result
27      */
28     @PostMapping(value = "/channels/list")
29     Result getChannelsList(@RequestBody PageDto pageDto);
30 }