文档
测试

查询用户信息判断是否是管理员

GET
/api/user/loginUser

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
object
示例:null
必填
data
object
数据字典
必填
isRoles
string
是否是管理员 0是 1不是
必填
user
object
数据字典
必填
password
object
示例:null
必填
username
string
示例:登陆人名称
必填
authorities
array
数据列表
必填
authority
string
示例:ROLE_1
必填
accountNonExpired
boolean
示例:true
必填
accountNonLocked
boolean
示例:true
必填
credentialsNonExpired
boolean
示例:true
必填
enabled
boolean
示例:true
必填
id
int
示例:登录人id
必填
deptId
int
示例:4
必填
phone
string
示例:11111111111
必填
avatar
string
示例:
必填
tenantId
int
示例:1
必填

说明 / 示例

{ "code":0, "msg":null, "data":{ "isRoles":"0", "user":{ "password":null, "username":"admin", "authorities":[ { "authority":"ROLE_1" }, { "authority":"admin_syspublicparam_add" }, { "authority":"admin_syspublicparam_del" }, { "authority":"admin_syspublicparam_edit" }, { "authority":"admin_systenant_add" }, { "authority":"admin_systenant_del" }, { "authority":"admin_systenant_edit" }, { "authority":"device_add" }, { "authority":"device_del" }, { "authority":"device_edit" }, { "authority":"device_view" }, { "authority":"getaway_add" }, { "authority":"getaway_del" }, { "authority":"getaway_edit" }, { "authority":"getaway_view" }, { "authority":"job_sys_job_add" }, { "authority":"job_sys_job_del" }, { "authority":"job_sys_job_edit" }, { "authority":"job_sys_job_refresh_job" }, { "authority":"job_sys_job_run_job" }, { "authority":"job_sys_job_shutdown_job" }, { "authority":"job_sys_job_start_job" }, { "authority":"sys_client_add" }, { "authority":"sys_client_del" }, { "authority":"sys_client_edit" }, { "authority":"sys_dept_add" }, { "authority":"sys_dept_del" }, { "authority":"sys_dept_edit" }, { "authority":"sys_dict_add" }, { "authority":"sys_dict_del" }, { "authority":"sys_dict_edit" }, { "authority":"sys_menu_add" }, { "authority":"sys_menu_del" }, { "authority":"sys_menu_edit" }, { "authority":"sys_role_add" }, { "authority":"sys_role_del" }, { "authority":"sys_role_edit" }, { "authority":"sys_role_perm" }, { "authority":"sys_social_details_add" }, { "authority":"sys_social_details_del" }, { "authority":"sys_social_details_edit" }, { "authority":"sys_token_del" }, { "authority":"sys_user_add" }, { "authority":"sys_user_del" }, { "authority":"sys_user_edit" } ], "accountNonExpired":true, "accountNonLocked":true, "credentialsNonExpired":true, "enabled":true, "id":1, "deptId":4, "phone":"11111111111", "avatar":"", "tenantId":1 } } }