AuthFeignClient.java
1.63 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
package cn.com.glsx.auth.api;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
/**
* @author payu
*/
@FeignClient(name = "glsx-ne-shield-usercenter", contextId = "authcenter", path = "/usercenter/auth/")
public interface AuthFeignClient {
/**
* 判断用户是否登录
*
* @return
*/
@GetMapping(value = "/isLogin", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
R isLogin();
/**
* 获取当前登录用户对应资源等权限
*
* @return
*/
@GetMapping(value = "/getAuthUser", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
R getAuthUser();
/**
* 获取当前登录用户角色数据权限内的部门id
*
* @return
*/
@GetMapping(value = "/getAuthDeptIds", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
R getAuthDeptIds();
/**
* 获取当前登录用户角色数据权限内的用户id
*
* @return
*/
@GetMapping(value = "/getAuthUserIds", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
R getAuthUserIds();
/**
* 获取当前登录用户角色授权的功能菜单
*
* @return
*/
@GetMapping(value = "/getPermMenus", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
R getPermMenus();
}