UserClient.java
4.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
package com.glsx.common.feign.client;
import java.util.List;
import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.config.FeignConfig;
import com.glsx.common.constants.ResultObject;
/**
*
* @Title UserClient.java
* @Package com.glsx.common.feign.client
* @Description TODO feign的用户客户端
* @author zhanghj
* @date 2019年2月1日 上午11:06:44
* @version 1.0.0
*/
@FeignClient(name="car-service-usercenter", configuration=FeignConfig.class)
public interface UserClient {
/**
*
* @author zhanghj
* @Title: isLogin
* @Description: TODO 用户是否登录
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/user/isLogin")
JSONObject isLogin();
/**
*
* @author zhanghj
* @Title: getUserById
* @Description: TODO 根据用户id获取用户信息
* @param id
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/user/getUserById")
JSONObject getUserById(@RequestParam("id")Integer id);
/**
*
* @author zhanghj
* @Title: getMerchantById
* @Description: TODO 根据用户id获取商户信息
* @param merchantId
* @return
* ResultObject
*
*/
@RequestMapping( method = RequestMethod.GET, value = "/carservice/usercenter/user/getMerchantById")
JSONObject getMerchantById(@RequestParam("merchantId")Integer merchantId);
/**
*
* @author duanht
* @Title: getServiceById
* @Description: TODO 根据用户id获取服务商
* @param serviceId
* @return
* ResultObject
*
*/
@RequestMapping( method = RequestMethod.GET, value = "/carservice/usercenter/user/getServiceById")
JSONObject getServiceById(@RequestParam("serviceId")Integer serviceId);
/**
*
* @author zhanghj
* @Title: getMerchantList
* @Description: TODO 获取商户列表
* @param id
* @param type
* @return
* JSONObject
*
*/
@RequestMapping( method = RequestMethod.GET, value = "/carservice/usercenter/user/getMerchantList")
JSONObject getMerchantList(@RequestParam("groupId")Integer groupId, @RequestParam("shopName") String shopName, @RequestParam("userStatus")String userStatus);
/**
*
* @author zhanghj
* @Title: getMerchantById
* @Description: TODO 根据用户id获取技工信息
* @param merchantId
* @return
* JSONObject
*
*/
@RequestMapping( method = RequestMethod.GET, value = "/carservice/usercenter/user/getMechanicById")
JSONObject getMechanicById(@RequestParam("mechanicId")Integer mechanicId);
/**
*
* @author zhanghj
* @Title: getUserById
* @Description: TODO 根据用户id获取用户公众号openId和名字
* @param id
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/user/getOpenIdAndNameById")
JSONObject getOpenIdAndNameById(@RequestParam("id")Integer id);
/**
*
* @author zhanghj
* @Title: getMechanicSP
* @Description: TODO 获取技工所属服务商
* @param userId
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/user/getMechanicSP")
JSONObject getMechanicSP(@RequestParam("userId")Integer userId);
/**
*
* @author zhanghj
* @Title: getOnlineManagerList
* @Description: TODO 获取在线管理员列表
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/user/getOnlineManagerList")
JSONObject getOnlineManagerList();
@RequestMapping(method = RequestMethod.POST, value = "/carservice/usercenter/user/sendBiddingOrderNoBidRemindMsg")
JSONObject sendBiddingOrderNoBidRemindMsg(@RequestParam("orderList")String orderList);
/**
*
* @author zhanghj
* @Title: getServiceListByAreaCode
* @Description: TODO 获取该服务区域内的服务商列表
* @param areaCodeList
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/provider/getServiceListByAreaCode")
JSONObject getServiceListByAreaCode(@RequestParam("areaCodeList")List<Integer> areaCodeList);
/**
*
* @author zhanghj
* @Title: getUserServiceListByUserId
* @Description: TODO 通过userId获取服务商列表
* @param userList
* @return
* JSONObject
*
*/
@RequestMapping(method = RequestMethod.GET, value = "/carservice/usercenter/provider/getUserServiceListByUserId")
JSONObject getUserServiceListByUserId(@RequestParam("userList")List<Integer> userList);
}