提交 | 用户 | 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 |
034525
|
18 |
* 返回实体SpecInfoDt |
12bc6c
|
19 |
*/ |
F |
20 |
@PostMapping(value = "/spec/info") |
|
21 |
Result getSpecInfo(@RequestParam("id") String id); |
|
22 |
|
|
23 |
|
|
24 |
/** |
|
25 |
* 获取规格值信息 |
|
26 |
* @return Result |
034525
|
27 |
* 返回实体SpecInfoDt |
12bc6c
|
28 |
*/ |
F |
29 |
@PostMapping(value = "/specValue/info") |
|
30 |
Result getSpecValueInfo(@RequestParam("id") String id); |
|
31 |
|
|
32 |
} |