提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
7eff40
|
4 |
import com.hz.his.vo.label.LabelFindVo; |
7c680b
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
6 |
import org.springframework.web.bind.annotation.PostMapping; |
7eff40
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
7c680b
|
8 |
import org.springframework.web.bind.annotation.RequestParam; |
C |
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
314a4b
|
13 |
@FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "userLabel") |
7c680b
|
14 |
public interface SUserLabelService { |
C |
15 |
|
|
16 |
/** |
|
17 |
* 获取用户颜值规划书标签 |
|
18 |
* @param userId 预约用户标识 |
|
19 |
* @return |
|
20 |
*/ |
|
21 |
@PostMapping(value = "/user/getUserLabel") |
|
22 |
Result getUserLabel(@RequestParam("userId") String userId); |
7eff40
|
23 |
|
C |
24 |
/**根据范围获取 |
|
25 |
* 获取用户标签 |
|
26 |
* @return Result的data返回的格式:key值:分类标识;value:LabelVo的集合 |
|
27 |
*/ |
0b54f2
|
28 |
@PostMapping(value = "/label/user/label/list") |
7eff40
|
29 |
Result getLabelUserLabel(@RequestBody LabelFindVo labelFindVo); |
C |
30 |
|
7c680b
|
31 |
} |