接口地址:/webapi/user/{userId}/action/getUserInfo
请求方式:POST
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
接口描述:
通过id查询用户基本信息
请求示例:
{
"empty": true
}
请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| userId | 请求userId数据 | path | true | integer(int32) | |
| empty | body | false | boolean |
响应状态:
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResponseResultUserInfoByIdVo |
响应参数:
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| message | 返回状态标记 | string | |
| statFlag | 返回状态 | integer(int32) | integer(int32) |
| dataInfo | UserInfoByIdVo | UserInfoByIdVo | |
| id | 用户ID | integer(int64) | |
| userName | 用户名称 | string | |
| concatorUserName | 别名 | string | |
| userType | 用户类型 | integer(int32) | |
| e_mail | 邮箱 | string | |
| description | 描述 | string | |
| createTime | 创建时间 | string | |
| groups | 用户组信息 | array | GroupInfoVo |
| groupId | 用户组ID | integer(int64) | |
| groupName | 用户组名称 | string | |
| groupType | 用户组类型 | integer(int32) | |
| description | 用户组描述 | string | |
| companyId | 公司ID | integer(int64) | |
| companyName | 公司名称 | string | |
| roles | 角色信息 | array | RoleInfoVo |
| roleId | 角色ID | integer(int64) | |
| roleName | 角色名称 | string | |
| roleType | 角色类型 | integer(int32) | |
| roleDescription | 角色描述 | string | |
| description | 角色描述 | string | |
| companys | 公司信息 | array | CompanyVo |
| companyId | 公司ID | integer(int64) | |
| companyName | 公司名称 | string | |
| dataCount | 返回数据条数 | integer(int32) | integer(int32) |
响应示例:
{
"message": "操作成功",
"statFlag": 0,
"dataInfo": {
"id": 0,
"userName": "",
"concatorUserName": "",
"userType": 0,
"e_mail": "",
"description": "",
"createTime": "",
"groups": [
{
"groupId": 0,
"groupName": "",
"groupType": 0,
"description": "",
"companyId": 0,
"companyName": ""
}
],
"roles": [
{
"roleId": 0,
"roleName": "",
"roleType": 0,
"roleDescription": "",
"description": ""
}
],
"companys": [
{
"companyId": 0,
"companyName": ""
}
]
},
"dataCount": 10
}