UserClient.java
1.71 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
package com.glsx.common.feign.client;
import org.springframework.cloud.openfeign.FeignClient;
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(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);
}