提交 | 用户 | age
|
751531
|
1 |
package com.hz.his.feign.service.sync; |
Z |
2 |
|
|
3 |
/** |
|
4 |
* @Author |
|
5 |
*/ |
|
6 |
|
f14b52
|
7 |
import com.hx.resultTool.Result; |
b37d55
|
8 |
import net.sf.json.JSONObject; |
751531
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
Z |
10 |
import org.springframework.web.bind.annotation.PostMapping; |
b37d55
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
e81a31
|
12 |
import org.springframework.web.bind.annotation.RequestParam; |
751531
|
13 |
|
Z |
14 |
/** |
|
15 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
16 |
*/ |
|
17 |
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-user") |
|
18 |
public interface SyncUserService { |
|
19 |
|
|
20 |
/** |
|
21 |
* 根据用户id同步用户基本信息,订单信息,可划扣信息,已划扣信息 |
|
22 |
* @param userId |
|
23 |
* @return |
|
24 |
*/ |
0f5ea3
|
25 |
@PostMapping(value = "/user/consumption/data/list") |
e81a31
|
26 |
Result userList(@RequestParam("userId") String userId); |
751531
|
27 |
/** |
Z |
28 |
* 根据用户id同步用户基本信息 |
|
29 |
* @param userId |
|
30 |
* @return |
|
31 |
*/ |
0f5ea3
|
32 |
@PostMapping(value = "/sync/user/syncUserById") |
e81a31
|
33 |
Result syncUserById(@RequestParam("userId") String userId); |
b37d55
|
34 |
|
Z |
35 |
/** 主动同步创建顾客到his - 修改用户ciq和会员等级*/ |
|
36 |
@PostMapping("/sync/user/updateMembership") |
|
37 |
Result updateMembership(@RequestBody JSONObject jsonObject); |
|
38 |
|
751531
|
39 |
} |