Authorization: ********************{
"username": "lisi",
"password": "123456",
"nickname": "李四",
"mobile": "13800138001",
"email": "lisi@example.com",
"dept_id": 1,
"status": 1,
"is_super": 0,
"role_ids": [
2
]
}curl --location '/admin/user/add' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "lisi",
"password": "123456",
"nickname": "李四",
"mobile": "13800138001",
"email": "lisi@example.com",
"dept_id": 1,
"status": 1,
"is_super": 0,
"role_ids": [
2
]
}'{
"code": 0,
"msg": "success",
"data": {
"id": 1,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"username": "admin",
"nickname": "超级管理员",
"avatar": "/files/2026/09/23/8f14e45fceea167a5a36dedd4bea2543.png",
"mobile": "string",
"email": "string",
"dept_id": 0,
"status": 1,
"is_super": 0,
"roles": [
{
"id": 1,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"name": "运营专员",
"code": "operator",
"parent_id": 0,
"sort": 0,
"status": 1,
"remark": "string"
}
]
}
}