提交 | 用户 | age
|
12bc6c
|
1 |
package com.hz.his.feign.service.phis; |
F |
2 |
|
|
3 |
|
|
4 |
import com.hx.resultTool.Result; |
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
|
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestParam; |
|
8 |
|
|
9 |
/** |
|
10 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
11 |
*/ |
|
12 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "spec") |
|
13 |
public interface SSpecService { |
|
14 |
|
|
15 |
/** |
|
16 |
* 获取规格信息 |
|
17 |
* @return Result |
|
18 |
*/ |
|
19 |
@PostMapping(value = "/spec/info") |
|
20 |
Result getSpecInfo(@RequestParam("id") String id); |
|
21 |
|
|
22 |
|
|
23 |
/** |
|
24 |
* 获取规格值信息 |
|
25 |
* @return Result |
|
26 |
*/ |
|
27 |
@PostMapping(value = "/specValue/info") |
|
28 |
Result getSpecValueInfo(@RequestParam("id") String id); |
|
29 |
|
|
30 |
} |