提交 | 用户 | 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; |
f2485c
|
5 |
import com.hz.his.dto.channel.ChannelDto; |
F |
6 |
import com.hz.his.dto.channel.ChannelGeneralDto; |
7c680b
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RequestParam; |
|
11 |
|
|
12 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "channels") |
|
16 |
public interface SChannelsService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取渠道详情 |
|
20 |
* @param channelsId 渠道标识 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/channels/detail") |
|
24 |
Result getChannelsDetail(@RequestParam("channelsId") String channelsId); |
|
25 |
|
|
26 |
/** |
|
27 |
* 获取渠道列表 |
|
28 |
* @return Result |
|
29 |
*/ |
|
30 |
@PostMapping(value = "/channels/list") |
|
31 |
Result getChannelsList(@RequestBody PageDto pageDto); |
02795f
|
32 |
|
F |
33 |
/** |
|
34 |
* 获取渠道列表-渠道大类 |
|
35 |
* @return Result |
|
36 |
*/ |
|
37 |
@PostMapping(value = "/channels/type/list") |
|
38 |
Result getChannelsListByType(@RequestBody PageDto pageDto); |
f2485c
|
39 |
|
F |
40 |
/** |
|
41 |
* 获取渠道列表-判断是否归属 |
|
42 |
* @return Result |
|
43 |
*/ |
|
44 |
@PostMapping(value = "/channels/type/check") |
|
45 |
Result checkInChannel(@RequestBody ChannelGeneralDto channelGeneralDto); |
7c680b
|
46 |
} |