# /org/addUser
`HTTP请求方式:POST`
> 添加人员
## 请求参数
|名称| 类型 |是否必须|描述|
|:---:| :---: |:---:|:---:|
|userName| String|是|人员名称|
|email| String|否|邮件|
|phonenumber| String|否|手机号|
|roleList| Array|否|角色列表|
|departmenList|Array|否|部门列表|
|postList| Array|否|岗位列表|
|positionList| Array|否|职位列表|
|status| String|否|人员状态;0:正常;1:停用|
## 响应参数
|名称| 类型 |描述|
|:---:| :---: |:---:|
|userName| String|人员名称|
|email| Integer|邮件|
|roleList| Array|角色列表|
|postList| Array|岗位列表|
|positionList| Array|职位列表|
|departmenList| Array|部门列表|
|status| String|人员状态|
|userCode| String|人员编码|
> 人员编码是部门的唯一标志号,在修改人员信息、及在流程中选择人员等都是使用人员编码作为唯一值
## 请求示例
```json
{
"userName": "张震",
"roleList": [
"0f988c4a-dd8f-4023-9f54-270d97abef20",
"76afe156-e941-4587-a77a-f3a087c63263"
],
"departmenList": [
"2778fd09-07d3-49fa-a998-e33f3ca1c017"
],
"postList": [
"93025e93-4b24-4678-913a-6827788fcabc"
],
"positionList": [
"ccb1af37-ee74-4824-9570-8958103851c2"
],
"email": "1441299@qq.com",
"phonenumber": "13918347839",
"status": "0"
}
```
## 响应示例
```json
{
"result": true,
"code": 0,
"msg": "成功",
"data": {
"userName": "张震",
"email": "1441299@qq.com",
"status": "0",
"roleList": [
"0f988c4a-dd8f-4023-9f54-270d97abef20",
"76afe156-e941-4587-a77a-f3a087c63263"
],
"postList": [
"93025e93-4b24-4678-913a-6827788fcabc"
],
"positionList": [
"ccb1af37-ee74-4824-9570-8958103851c2"
],
"departmenList": [
"2778fd09-07d3-49fa-a998-e33f3ca1c017"
],
"userCode": "3b57136d-0c43-4dc9-8063-9c42d58456b6"
}
}
```