用户信息新增
POST
/system/user请求参数
Body 参数application/json
userName
string
用户名称
password
string
用户密码
nickName
string
用户昵称
email
string
邮箱
phonenumber
string
电话
sex
string
性别
0未知 1男 2女
status
string
状态
0停用 1正常
remark
string
备注
deptId
string
部门ID
roleIds
array[string]
角色ID数组
postIds
array[string]
岗位ID数组
userType
string
用户类型
sys系统用户
avatar
string
头像
示例
{
"remark": "去只传周物给",
"deptId": 102,
"nickName": "龙杰",
"email": "h.vrcjiz@qcfgqedxw.bz",
"phonenumber": "18641692257",
"sex": "0",
"status": "1",
"roleIds": [
2
],
"postIds": [
1,
2,
3,
4
],
"userName": "gijobqebs",
"password": "123456"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
异常示例
{
"code": 500,
"msg": "失败"
}
修改于 1 年前