**请求URL:** - ` http://xx.com/api/Home/batchAddPerson ` **请求方式:** - POST **请求类型:** - Content-Type:application/json **body参数说明:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |vid |是 |string |一级组织标识 | |vname |是 |string |一级组织名称 | |sluices |是 |object [] | 闸机详情 | |persons |是 |object [] | 人员信息 | **persons参数说明:** |字段|类型|默认|说明| |:---- |:------- |:--- |-- -|------ | |name |string |是 | 人员名称 | |idCard |string |是 | 身份证号 | |pic |string |是 | 图片 | |telnum1 |string |是 | 电话号码 | |rooms |object[] |否 | 组织架构信息 | **rooms参数说明:** |字段|类型|空|注释| |:---- |:------- |:--- |-- -|------ | |buildingId |否 |string |二级组织架构id | |unitId |否 |string |三级组织架构id | |roomId |否 |string |四级组织架构id | **sluices参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |facesluicesid |是 |string |闸机id | |tempCardType |否 |string |临时卡类型 0:永久 1:按时段通行 2:每日时段 3:按次 | |cardValidBegin |否 |string |临时卡开始时间(临时卡类型为1,2时为必填) | |cardValidEnd |否 |string |临时卡结束时间(临时卡类型为1,2时为必填) | |effectNumber |否 |int |通行次数(临时卡类型为3时为必填) | - 备注:无 **请求示例** ``` { "vid" : "ef0faea4695d4f9fb6f29ada","vname":"测试小区","facesluiceId":["5e606aab0c7cc59ccb284624"], "persons":[{ "name":"人间小可爱","idCard":"430497159845282154","pic":"https://lebopark.oss-cn-shenzhen.aliyuncs.com/faceTest/bf3688aa-fb3e-4476-bbc0-c454cd2a8e1f.jpg","telnum1":"15487548764","rooms":[{"unitId" : "5cfdbec320194a43c22ec2f9"}] },{ "name":"人间小苦瓜","idCard":"430482157845282157","pic":"https://lebopark.oss-cn-shenzhen.aliyuncs.com/faceTest/566e5734-5a81-474f-949e-4985cb361700.jpg","telnum1":"15391557845","rooms":[ {"buildingId":"5cfdbea020194a43c22ec2f7"}]}] } ``` **返回示例** ``` { "result": { "retcode": -1, "total": 0, "data": [ { "errmsg": [ { "customId": "783d3335131146ff99439ff473e0e1cc", "idCard": "430497153345282154" }, { "customId": "2aaa33329f2645709faecf673bba202c", "idCard": "430482157833282157" } ] } ], "message": "成功", "otherobj": 2 } } ``` **返回data参数说明** |参数名|类型|说明| |:----- |:-----|----- | |errmsg |object [] |返回结果 | **返回成功结果errmsg参数说明** |参数名|类型|说明| |:----- |:-----|----- | |customId |string |人员customId | |idCard |string |身份证 | **返回失败结果errmsg参数说明** |参数名|类型|说明| |:----- |:-----|----- | |customId |string |人员customId | |idCard |string |身份证 | |msg |string |提示错误原因 |