添加用户。
http://host:port/open/api/v1/users/add
POST
| 字段 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| username | String | 是 | 登录名称 |
| loginName | String | 是 | 登录名称 |
| password | String | 是 | 密码 |
| phone | String | 否 | 手机号码,手机号码必须唯一 |
| String | 否 | 邮箱,邮箱必须唯一 | |
| sex | String | 否 | 性别 |
| remark | String | 否 | 备注 |
| deptId | Long | 否 | 部门编号 |
| status | String | 否 | 用户状态,0=正常,1=停用 |
| roleIds | 数组 | 否 | 角色编号数组 |
| postIds | 数组 | 否 | 部门编号数组 |
{
"username": "test",
"phone": "13671686941",
"email": "test@veryreport.com",
"loginName": "test",
"password": "test123",
"sex": "0",
"remark": "添加测试账号",
"status": "0",
"deptId": 103,
"roleIds": [2],
"postIds": [6]
}