更新用户状态
PUT
/system/user/changeStatus
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
createBy
string | null
创建者
createTime
string | null
创建时间
updateBy
string | null
更新者
updateTime
string | null
更新时间
remark
string | null
备注
userId
integer | null
用户id
userName
string | null
用户名
nickName
string | null
用户昵称
password
string | null
密码
>= 6 字符<= 50 字符
sex
integer | null
性别
userStatus
integer | null
可选
email
string <email> | null
邮箱
>= 0 字符<= 50 字符
phone
string | null
手机号码
>= 0 字符<= 11 字符
deptId
integer | null
关联部门id
deptName
string | null
关联部门名称
avatar
string | null
用户头像
dept
object (Dept)
可选
createBy
string | null
创建者
createTime
string | null
创建时间
updateBy
string | null
更新者
updateTime
string | null
更新时间
remark
string | null
备注
deptId
integer | null
部门ID
parentId
integer | null
父部门ID
>= 0
ancestors
string | null
祖级 列表
deptName
string | null
部门名称
sort
integer | null
显示顺序
>= 0
leader
string | null
负责人
phone
string | null
联系电话
>= 0 字符<= 11 字符
email
string <email> | null
邮箱
>= 0 字符<= 50 字符
deptStatus
integer | null
可选
delFlag
boolean | null
可选
children
array[object (Dept) {16}] | null
子部门
默认值:
new ArrayList<>()
roles
array[object (Role) {12}] | null
角色对象
createBy
string | null
创建者
createTime
string | null
创建时间
updateBy
string | null
更新者
updateTime
string | null
更新时间
remark
string | null
备注
roleId
integer | null
角色ID
roleName
string | null
角色名称
roleKey
string | null
权限字符
sort
integer | null
角色排序
>= 0
roleStatus
integer | null
可选
menuIds
array[integer] | null
关联菜单id集合
delFlag
boolean | null
可选
roleIds
array[integer] | null
角色组
delFlag
boolean | null
可选
示例
{
"createBy": "string",
"createTime": "string",
"updateBy": "string",
"updateTime": "string",
"remark": "string",
"userId": 0,
"userName": "string",
"nickName": "string",
"password": "string",
"sex": 0,
"userStatus": 0,
"email": "user@example.com",
"phone": "string",
"deptId": 0,
"deptName": "string",
"avatar": "string",
"dept": {
"createBy": "string",
"createTime": "string",
"updateBy": "string",
"updateTime": "string",
"remark": "string",
"deptId": 0,
"parentId": 0,
"ancestors": "string",
"deptName": "string",
"sort": 0,
"leader": "string",
"phone": "string",
"email": "user@example.com",
"deptStatus": 0,
"delFlag": true,
"children": "new ArrayList<>()"
},
"roles": [
{
"createBy": "string",
"createTime": "string",
"updateBy": "string",
"updateTime": "string",
"remark": "string",
"roleId": 0,
"roleName": "string",
"roleKey": "string",
"sort": 0,
"roleStatus": 0,
"menuIds": [
0
],
"delFlag": true
}
],
"roleIds": [
0
],
"delFlag": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:81/system/user/changeStatus' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer | null
可选
msg
string | null
返回消息
data
boolean | null
返回数据
示例
{
"code": 0,
"msg": "",
"data": false
}
修改于 2024-05-06 03:44:54