添加用户接口

1.接口说明

添加用户。

2.接口调用说明

2.1 URL
http://host:port/open/api/v1/users/add
2.2 HTTP请求方式

POST

2.3 格式
json
2.4 请求参数
2.4.1 请求参数说明
字段 类型 是否必须 说明
username String 登录名称
loginName String 登录名称
password String 密码
phone String 手机号码,手机号码必须唯一
email String 邮箱,邮箱必须唯一
sex String 性别
remark String 备注
deptId Long 部门编号
status String 用户状态,0=正常,1=停用
roleIds 数组 角色编号数组
postIds 数组 部门编号数组
2.4.2 请求参数示例
{   "username": "test",   "phone": "13671686941",   "email": "test@veryreport.com",   "loginName": "test",   "password": "test123",   "sex": "0",   "remark": "添加测试账号",   "status": "0",   "deptId": 103,   "roleIds": [2],   "postIds": [6] }