提交 | 用户 | age
|
a7dce1
|
1 |
package com.hz.his.feign.service.sync; |
R |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import org.springframework.cloud.openfeign.FeignClient; |
|
5 |
import org.springframework.web.bind.annotation.PostMapping; |
|
6 |
import org.springframework.web.bind.annotation.RequestBody; |
|
7 |
|
|
8 |
import java.util.Map; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
3dac1b
|
13 |
@FeignClient(name="phi-platform-user",path = "/his_synchro",contextId = "synchro-st-user") |
a7dce1
|
14 |
public interface SyncSTUserImgService { |
R |
15 |
|
|
16 |
|
|
17 |
/*** 同步商品用户头像**/ |
|
18 |
@PostMapping(value = "/st/sync/getStImgUrl") |
|
19 |
Result syncStUserImg(@RequestBody Map<String,Object> userMap); |
|
20 |
} |