Methods
activeDispatchGroup 激活调度(params, resolve, reject)
激活调度
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_activeDispatchGroup> | 对讲组的id |
resolve |
function | 成功回调 |
reject |
function | 失败回调 |
addDevice -设备注册 输入参数(options, resolve, reject) → {Obj.<code>}
设备注册 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<options_addDevice> | |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
Returns:
status - 返回参数 返回码
{
"status": 200
}
- Type
- Obj.<code>
addEventListener -添加事件监听事件(event, eventCallback(data))
添加事件监听事件
Parameters:
Name | Type | Description |
---|---|---|
event |
||
eventCallback(data) |
addGroup -群组添加(params, resolve, reject)
群组添加
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params_addGroup_Or_ModifyGroup> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
addUnit -添加部门(options, resolve, reject)
添加部门
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_addUnit> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<status> | 状态返回 |
addUser -添加群组人员(params, resolve, reject)
人员添加
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_addUser> | 必选 |
resolve |
function | -必选 成功的回调 |
reject |
function | -可不选 失败的回调 |
allocateDevice - 设备分配(id, devicelds, resolve, reject)
设备分配 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 待移除的用户id |
devicelds |
Array | 移除的设备集合 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<allocateDevice> | 返回参数 |
Example
{
userId:1, //待移除的用户id
deviceIds:[1,2,3,4,5] //移除的设备集合
}
allocateGroup -分配群组成员(params, resolve, reject)
分配群组成员
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params_allocateGroup> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
allSignPlaces 查询全部签到点列表(options, resolve, reject)
查询全部签到点列表 返回值:签到点列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<params_allSignPlaces> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回参数示例
{
"rows": [{ //array 数据集合
"spid": 4, //number 签到点id
"lat": 12, //number 经度
"lng": 23, //number 纬度
"scope": 34, //number 签到范围
"name": "55", //number 签到点名称
"create_time": "1538039462726", //number 签到点创建时间
"update_time": "1538046507447" //number 签到点修改时间
}],
"status": 200 //number 返回码
}
bindDevice - 绑定设备(options, resolve, reject)
绑定设备 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<options_bindDevice> | 设备id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<bindDevice> | 返回参数 |
bindWorkShiftDevices 查询分配签到班次的设备列表(bid, resolve, reject)
查询分配签到班次的设备列表 bid 返回值:用户列表
Parameters:
Name | Type | Description |
---|---|---|
bid |
int | 必选 班次id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回参数示例
{
"status": 200, //int 返回码
"datas": [ //array 设备用户列表
{
"uid": 404, //int 用户id
"name": "Wilson233", //string 用户名称
}
]
}
changeTalkStatus 切换对讲状态(对讲申请/对讲结束)(resolve, reject)
对讲状态切换
Parameters:
Name | Type | Description |
---|---|---|
resolve |
function | 成功回调 |
reject |
function | 失败回调 |
deleteApp -删除App(id, resolve, reject)
删除aapp 返回值:操作状态
Parameters:
Name | Type | Description |
---|---|---|
id |
int | id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<code> | 返回参数 |
Example
{
id:1 //APPid
}
deleteAppVersion -删除app版本(id, resolve, reject)
删除App版本 返回值:操作状态
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 版本id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<code> | 返回参数 |
Examples
{ id:1 //版本id }
返回参数 { "status": 200}
deleteDevice -设备删除(options, resolve, reject) → {Obj.<code>}
设备删除 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
int | id设备id |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
Returns:
status - 返回参数 返回码
{
"status": 200
}
- Type
- Obj.<code>
Example
{
id:1, //设备id
}
deleteDeviceOperateLog 删除设备日志(options, resolve, reject)
删除设备日志
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_deleteDeviceOperateLog> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<deleteDeviceOperateLog> | 状态返回 |
deleteFace -批量删除人脸库(options, resolve, reject)
批量删除人脸库
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<obj_face_result> | 必选 没有返回值 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
deleteFence 删除围栏(id, resolve, reject)
删除围栏
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 围栏id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<State_return> | 状态返回 |
Example
{
id:1, //围栏id
}
deleteFile -删除文件(params, resolve, reject)
删除文件
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params_deleteFile> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
deleteGroup -删除群组(params, resolve, reject)
删除群组
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params_deleteGroup> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
deleteResult 批量删除识别记录(params, resolve, reject)
批量删除识别记录
Parameters:
Name | Type | Description |
---|---|---|
params |
Array.<obj_result> | 必选 没有返回值 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
deleteRights 删除权限(ids, resolve, reject)
删除权限
Parameters:
Name | Type | Description |
---|---|---|
ids |
int | 主键id集合 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<deleteRights> | 操作状态 |
Example
{
ids:[1,2,3] //主键id集合
}
deleteRole 删除角色,清除权限绑定关系(ids, resolve, reject)
删除角色,清除权限绑定关系
Parameters:
Name | Type | Description |
---|---|---|
ids |
Array.<int> | id集合 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<deleteRole> | 权限列表 |
Example
{
ids:[1,2,3] //id集合
}
deleteSignPlace 删除签到点(id, resolve, reject)
删除签到点 id 返回值:返回码
Parameters:
Name | Type | Description |
---|---|---|
id |
integer | 必需 签到点id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
deleteUnit -删除部门(id, resolve, reject)
删除部门
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 部门id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<status> | 状态返回 |
Example
{
id:1 //部门id
}
deleteUser -移除群组成员(params, resolve, reject)
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_deleteUser> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
deleteWorkShift 删除签到班次(id, resolve, reject)
删除签到班次
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 必选 班次id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回示例 { status:200 //状态码 }
deviceBindFence 设别绑定到围栏(fid, uids, resolve, reject)
设别绑定到围栏
Parameters:
Name | Type | Description |
---|---|---|
fid |
int | 围栏id |
uids |
Array.<int> | 人员id集合 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<State_return> | 状态返回 |
Example
{
fid:1, //围栏id
uids:[1,2,3] //人员id集合
}
deviceBindWorkShift 设备绑定到签到班次(options, resolve, reject)
设备绑定到签到班次
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<params_deviceBindWorkShift> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回示例 { status:200 //状态码 }
devicePicture 远程录音抓拍(options, resolve, reject)
远程录音抓拍
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<device_params> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
deviceRecordAudio 远程录音状态切换(options, resolve, reject)
远程录音状态切换
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<device_params> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
deviceRecordVideo 远程录像状态切换(options, resolve, reject)
远程录像状态切换
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<device_params> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
disableDevice - 设备停用(id, resolve, reject)
设备停用 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 待禁用的设备id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<allocateDevice> | 返回参数 |
Example
{
id:1 //待禁用的设备id
}
downloadDeviceOperateLog 下载设备日志(options, resolve, reject)
下载设备日志
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_downloadDeviceOperateLog> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<downloadDeviceOperateLog> | 状态返回 |
downloadFile -下载文件(params, resolve, reject)
下载文件
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params_downloadFile> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
enableDevice - 设备启用(id, resolve, reject)
设备启用 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 待启用的设备id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<enableDevice> | 返回参数 |
Example
{
id:1 //待启用的设备id
}
exportSigns 导出考勤记录(options, resolve, reject)
导出考勤记录 检索参数 返回值:文件流
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_exportSigns> | 必需 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
getAllocatedDevice - 已分配的设备列表(options, resolve, reject)
已分配的设备列表 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
int | 设备id |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
... |
Obj.<getAllocatedDevice> | 返回参数 |
Example
{
id:1 //设备id
}
getAllocateUsersByParams -群组成员列表(id, resolve, reject)
群组成员列表 返回值:组内群组成员列表
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组id |
resolve |
Function_obj_groupUser | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
getAppInfo -获取app详情(id, resolve, reject)
获取app详情 返回值:APP详情
Parameters:
Name | Type | Description |
---|---|---|
id |
int | id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<getAppInfo> | 返回参数 |
getAppList -获取app列表(options, resolve, reject)
获取app列表 返回值:APP列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getAppList> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<getAppList> | 返回参数 |
getAppVersionInfo -获取APP版本详情(id, resolve, reject)
获取APP版本详情 返回值:APP版本详情
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 版本id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
Examples
{id:1 //版本id }
返回参数
{
"id": 71, //int 版本id (添加非必要)
"activite": 1, //int 状态(0 不可用 / 1 可用)
"filename": "ivmcc_telyes_release_1.7.24_993.apk", //string 文件名称
"instruction": "", //string 备注
"os": "Android", //os 系统(Android or ios)
"type": 0, //int 类型(0 不强制更新 / 1 强制)
"version": "ivmcc_telyes_release_1.7.24_993", //string 版本名
"version_code": 993, //string 版本编号
"status": 200
}
getAppVersionList -获取App版本列表(options, resolve, reject)
获取App版本列表 返回值:APP版本列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getAppVersionList> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<getAppVersionList> | 返回参数 |
getBindedScanUrl - 获取绑定设备的二维码地址(id, resolve, reject)
获取绑定设备的二维码地址 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 设备id |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
... |
Obj.<getBindedScanUrl> | 返回参数 |
Example
{
id:1 //设备id
}
getBindFences 已绑定围栏的设备列表(fid, resolve, reject)
已绑定围栏的设备列表
Parameters:
Name | Type | Description |
---|---|---|
fid |
int | 围栏id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<datas_getBindFences> | 状态返回 |
Example
{
fid:1, //围栏id
}
getChildRightsList 获得下级权限列表(options, resolve, reject)
获得下级权限列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getChildRightsList> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getChildRightsList> | 权限列表 |
getCurGid 获取当前群组id() → {Boolean}
获取当前群组id
Returns:
-获取当前群组id
- Type
- Boolean
getDeviceInfo -获取设备信息(id, resolve, reject)
获取设备信息 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 必选 设备id |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
... |
obj.<getDeviceInfo> | 返回参数 |
Example
{id:1, 设备id };
getDeviceLoginLogsByParams 设备登录日志(options, resolve, reject)
设备登录日志
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getDeviceLoginLogsByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getDeviceLoginLogsByParams> | result返回值 |
getDeviceOperateLogsByParams 设备操作日志文件检索(options, resolve, reject)
设备操作日志文件检索
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getDeviceOperateLogsByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getDeviceOperateLogsByParams> | result返回值 |
getDevicesByParams -条件搜索设备列表 输入参数(options, resolve, reject, -返回参数)
条件搜索设备列表 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<options_getDevicesByParams> | id设备id |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
-返回参数 |
Obj.<getDevicesByParams> |
getFacesByParams 查询人脸库列表(options, resolve, reject)
查询人脸库列表
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<obj_getFacesByParams> | 必选 没有返回值 |
resolve |
Function_obj_faces | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
getFenceInfo 围栏详情(id, resolve, reject)
围栏详情
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 围栏id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<getFenceInfo> | object返回值 |
Example
{
id:1, //围栏id
}
getFencesByParams 查询围栏列表(params, resolve, reject)
查询围栏列表
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_getFencesByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<getFencesByParams> | row返回值 |
getGroupInfo -获取群组信息(id, resolve, reject)
获取群组信息
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组信息 |
resolve |
Function_group_obj | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
getGroups -获取群组列表(resolve, reject)
获取群组列表
Parameters:
Name | Type | Description |
---|---|---|
resolve |
Function_getGroups | 成功回调 |
reject |
function | 失败回调 |
getGroupsByParams -查询群组列表(params, resolve, reject)
查询群组列表
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params> | 必选 |
resolve |
Function_obj_group_list | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
getLastGid 上一个群组id() → {Boolean}
上一个群组的id
Returns:
-上一个群组的id
- Type
- Boolean
getLocal - 获取设备本地配置(id, resolve, reject)
获取设备本地配置 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<getLocal> | 返回参数 |
Example
{
id:1 //人员id
}
getMedia - 获取设备媒体配置(id, resolve, reject)
获取设备媒体配置 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<getMedia> | 返回参数 |
Example
{
id:1 //人员id
}
getMediaInfo - 获取设备音视频状态(id, resolve, reject)
获取设备音视频状态 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 用户id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<getMediaInfo> | 返回参数 |
Example
{
id:212
}
getPicture - 获取设备拍照配置(id, resolve, reject)
获取设备拍照配置 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<getPicture> | 返回参数 |
Example
{
id:1 //人员id
}
getResultsByParams 查询识别记录列表(params, resolve, reject)
查询识别记录列表
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_getResultsByParams> | 必选 没有返回值 |
resolve |
Function_obj_result | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
getRightsInfo 获得权限详情(id, resolve, reject)
获得权限详情
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 主键id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getRightsInfo> | 权限信息 |
getRightsList 获取所有权限列表(id, resolve, reject)
获取所有权限列表
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 主键id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getRightsList> | 权限列表 |
Example
{
id:1 //主键id
}
getRoleInfo 获取角色详情(id, resolve, reject)
获取角色详情
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 角色id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getRoleInfo> | 权限列表 |
Example
{
id:1 //角色id
}
getRoleList 获取角色列表(option, resolve, reject)
获取角色列表
Parameters:
Name | Type | Description |
---|---|---|
option |
参数无 | |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getRoleList> | 权限列表 |
getScanUrl - 获取设备扫码换服务器IP地址(options, resolve, reject, -返回参数)
获取设备扫码换服务器IP地址
Parameters:
Name | Type | Description |
---|---|---|
options |
参数无 | |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
-返回参数 |
Obj.<getScanUrl> |
getSignPlacesByParams 查询签到点列表(options, resolve, reject)
查询签到点列表 检索参数 返回值:签到点列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<params_getSignPlacesByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回参数示例
{
"rows": [ //array 分页数据集合
{
"spid": 4, //number 签到点id
"lat": 12, //number 经度
"lng": 23, //number 纬度
"scope": 34, //number 签到范围
"name": "55", //number 签到点名称
"create_time": "1538039462726", //number 签到点创建时间
"update_time": "1538046507447", //number 签到点修改时间
"dept_name": "主部门"
}
],
"total": 3, //number 分页总数量
"status": 200 //number 返回码
}
getSignsByParams 查询考勤记录列表(options, resolve, reject)
查询考勤记录列表 检索参数 返回值:考勤记录列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getSignsByParams> | 必需 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<getSignsByParams_rows> | 返回参数 |
getSpace - 获取设备剩余空间(id, resolve, reject)
获取设备剩余空间 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<getSpace> | 返回参数 |
Example
{
id:1 //人员id
}
getSubRights 获得所有下级权限(id, resolve, reject)
获得所有下级权限
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 主键id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getSubRights> | 权限列表 |
getTalkingUid 获取当前对讲人id() → {Number}
获取当前对讲人id
Returns:
-获取当前对讲人id
- Type
- Number
getUnAllocatedDevice - 未分配的设备列表(id, resolve, reject)
未分配的设备列表 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 设备id |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
... |
Obj.<getUnAllocatedDevice> | 返回参数 |
Example
{
id:1 //设备id
}
getUnAllocateUsers -组内未分配到的群组成员列表(id, resolve, reject)
组内未分配到的群组成员列表
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组id |
resolve |
Function_obj_groupUser | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
getUnBindedDevice - 未绑定设备列表(name, puid, pageSize, pageNumber, sortable, resolve, reject)
未绑定设备列表 输入参数
Parameters:
Name | Type | Description |
---|---|---|
name |
String | 设备名称 |
puid |
String | 设备编号 |
pageSize |
int | 行数 |
pageNumber |
int | 页数 |
sortable |
String | 排序(参数返回的列名) |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
... |
Obj.<getUnBindedDevice> | 返回参数 |
Example
{
name:'pu_设备1', //设备名称
puid:'pu_2312', //设备编号
pageSize:1, //行数
pageNumber:1, //页数
sortable:'name' //排序
}
getUnBindFences 未绑定围栏的设备列表(fid, resolve, reject)
未绑定围栏的设备列表
Parameters:
Name | Type | Description |
---|---|---|
fid |
int | 围栏id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<datas_getUnBindFences> | 状态返回 |
Example
{
fid:1, //围栏id
}
getUnitsByParams -部门列表(resolve, reject)
部门列表 返回值:部门列表
Parameters:
Name | Type | Description |
---|---|---|
... |
参数无 | |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<param_getUnitsByParams> | 部门列表 |
getUserByParams 获取用户列表(params, resolve, reject)
获取用户列表
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_getUserByParams> | 必选 |
resolve |
Function_obj_result_getUserByParams | 成功的回调 |
reject |
function | 失败的回调 |
getUserByUnit -获取部门下的人员列表(options, resolve, reject)
获取部门下的人员列表 返回值:人员列表
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getUserByUnit> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<getUserByUnit> | 返回值:人员列表 |
getUserInfo -获取人员信息(id, resolve, reject)
人员添加 查询用户参数
Parameters:
Name | Type | Description |
---|---|---|
id |
number | 必选 人员id |
resolve |
Function_User | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
getUserLoginLogsByParams 用户登录日志(options, resolve, reject)
用户登录日志
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getUserLoginLogsByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getUserLoginLogsByParams> | result返回值 |
getUserOperateLogsByParams 操作日志(options, resolve, reject)
操作日志
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_getUserOperateLogsByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getUserOperateLogsByParams> | result返回值 |
getWorkShiftsByParams 根据参数查询签到班次列表(params, resolve, reject)
根据参数查询签到班次列表 检索参数 返回值:签到班次列表
Parameters:
Name | Type | Description |
---|---|---|
params |
obj.<params_getWorkShiftsByParams> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<getWorkShiftsByParams> | 返回参数 |
importDeviceOperateLog 导入设备日志(options, resolve, reject)
导入设备日志
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_importDeviceOperateLog> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<importDeviceOperateLog> | 状态返回 |
importFile -导入文件(options, fn1, fn2)
导入文件
Parameters:
Name | Type | Description |
---|---|---|
options |
array.<params_importFile> | 必选 |
fn1 |
function | 必选 成功的回调 |
fn2 |
function | 可不选 失败的回调 |
inactiveDispatchGroup 结束调度(params, resolve, reject)
取消调度
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_inactiveDispatchGroup> | 对讲组的id |
resolve |
function | 成功回调 |
reject |
function | 失败回调 |
isDispached 是否被调度() → {Boolean}
是否被调度
Returns:
-是否被调度 true被调度, false没有被调度
- Type
- Boolean
isDispatcher 是否正在调度别人() → {Boolean}
是否正在调度别人
Returns:
-是否正在调度别人
- Type
- Boolean
isTalking 是否是对讲中() → {Boolean}
是否是对讲中
Returns:
-是否是对讲中
- Type
- Boolean
loadBindUser - 未绑定设备列表(options, resolve, reject)
未绑定设备列表 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<options_loadBindUser> | 输入参数 |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
... |
Obj.<loadBindUser> | 返回参数 |
loadDepartentDevice - 获取部门和设备成员(options, resolve, reject)
获取部门和设备成员 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | 参数 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
loadDepartmentCough -获取部门和部门成员(id, resolve, reject)
获取部门和部门成员 返回值:部门和部门成员
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 部门id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<loadDepartmentCough> | 获取部门和部门成员 |
loadTrackGps - 轨迹(personnel, begin, end, distance, resolve, reject)
轨迹 输入参数
Parameters:
Name | Type | Description |
---|---|---|
personnel |
Array.<int> | 用户id的集合 |
begin |
String | 待接受的用户id |
end |
String | 设备id集合 |
distance |
int | 地图距离比例 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<loadTrackGps> | 返回参数 |
Example
{
personnel:[1,2,3,5], //人员id集合
begin:'2015-06-15 06:50:20', //待转移的用户id
end:'2016-05-23 20:50:30', //待接受的用户id
distance:500 //设备集合
}
login -登录(params, resolve, reject)
登录
Parameters:
Name | Type | Description |
---|---|---|
params |
String | |
resolve |
function | 成功的回调 |
reject |
function | 失败的回调 |
logout -退出() → {Obj.<RcCodeMsg>}
退出
Returns:
- Type
- Obj.<RcCodeMsg>
modifyApp -添加或者修改app(id, resolve, reject)
添加或者修改app 返回值:操作状态
Parameters:
Name | Type | Description |
---|---|---|
id |
obj.<param_modifyApp> | 部门id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<code> | 返回参数 |
Example
{
"status": 200
}
modifyAppVersion -添加&修改App版本(options, resolve, reject)
添加或修改APP版本 返回值:操作状态
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_modifyAppVersion> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<code> | 返回参数 |
modifyDevice -修改设备(options, resolve, reject) → {Obj.<code>}
修改设备 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
Obj.<options_modifyDevice> | |
resolve |
Function__obj | 成功的回调 |
reject |
Function_RcCode | 失败的回调 |
Returns:
status - 返回参数 返回码
{
"status": 200
}
- Type
- Obj.<code>
modifyDevicePwd - 修改设备密码(id, password, resolve, reject)
修改设备密码 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 用户id |
password |
String | 密码 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<modifyDevicePwd> | 返回参数 |
Example
{
id:212, //用户id
password:'2312' //密码
}
modifyGroup -修改群组信息(params, resolve, reject)
修改群组信息
Parameters:
Name | Type | Description |
---|---|---|
params |
array.<params_addGroup_Or_ModifyGroup> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
modifyRights 添加&修改权限(options, resolve, reject)
添加&修改权限
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_modifyRights> | 必需 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<modifyRights> | 操作状态 |
modifyRole 添加&修改角色,更改绑定的权限(options, resolve, reject)
添加或修改角色,更改绑定的权限
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_modifyRole> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
obj.<modifyRole> | 权限列表 |
modifyUnit -修改部门(options, resolve, reject)
修改部门
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_modifyUnit> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<status> | 状态返回 |
modifyUser -人员修改(params, resolve, reject)
人员修改 查询用户参数
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<User> | 必选 |
resolve |
function | 成功的回调 |
reject |
function | 失败的回调 |
querySystemConfig 获取系统参数(params, resolve, reject)
获取系统参数
logo路径需要添加服务端地址前缀
输入参数 params传空{}
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
screenshot 服务器抓拍(el, uid, resolve, reject)
服务器抓拍
Parameters:
Name | Type | Description |
---|---|---|
el |
||
uid |
Obj.<server_params> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
sendMsg 发送广播消息(params, resolve, reject)
发送广播消息
Parameters:
Name | Type | Description |
---|---|---|
params |
Array.<params_sendMsg> | 广播人员id集合 / 发送内容 |
resolve |
function | 成功的回调 |
reject |
function | 失败的回调 |
serverRecordAudio 服务器录音状态切换(uid, resolve, reject)
服务器录音状态切换
Parameters:
Name | Type | Description |
---|---|---|
uid |
Obj.<server_params> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
serverRecordVideo 服务器录像状态切换(uid, resolve, reject)
服务器录像状态切换
Parameters:
Name | Type | Description |
---|---|---|
uid |
Obj.<server_params> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
setFence 设置围栏(options, resolve, reject)
设置围栏
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<param_setFence> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
Obj.<State_return> | 状态返回 |
setLocal - 设置设备本地配置(options, resolve, reject)
设置设备本地配置 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<options_setLocal> | 参数 |
resolve |
Function_obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<setLocal> | 返回参数 |
setMedia - 设置设备媒体配置(options, resolve, reject)
设置设备媒体配置 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<options_setMedia> | 参数 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<setMedia> | 返回参数 |
setMediaStatus 设置监控中,设备的媒体状态(uid, data)
设置监控中,设备的媒体状态
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | 人员id |
data |
Array.<Data> |
setPicture - 设置设备拍照配置(id, resolution, shots, resolve, reject)
设置设备拍照配置 输入参数
Parameters:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
resolution |
int | 分辨率(13为48002700,18为56323168,23为64003600,34为78084392) |
shots |
int | 连拍张数 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<setPicture> | 返回参数 |
Example
{
id:1, //人员id
resolution: 13, //分辨率(13为4800*2700,18为5632*3168,23为6400*3600,34为7808*4392)
shots: 16 //连拍张数
}
setSignPlace 添加,修改签到点(options, resolve, reject)
设置签到点 签到点参数 返回值:返回码
Parameters:
Name | Type | Description |
---|---|---|
options |
obj.<params_setSignPlace> | 必需 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
setSystemConfig 设置系统参数(params, resolve, reject)
设置系统参数
修改参数会先清除全部参数再重新添加,所以需要保持不变的参数也需要提交
如果不修改已经上传的file, 传现有文件路径即可
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_setSystemConfig> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
setWorkShift 添加,修改班次 不传bid为创建 , 传bid为修改(options, resolve, reject)
添加修改班次 班次参数
Parameters:
Name | Type | Description |
---|---|---|
options |
obj | Object | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
请求示例 不传bid为创建 , 传bid为修改
{
name: 谷歌, //string 班次名称
bid: 18, //int 班次id
signtimesList:[{ //object 班次需要签到的时间段列表
"beginTime": -25200000, //int 开始时间
"endTime": -21600000, //int 结束时间
"week": 1, //int 星期
"name": "早", //string 时间段名称
"stid": "1", //int 时间段标识(早班,午班等标识)
"spid": "23", //int 关联签到点id
"place": "东方半岛" //string 关联签到点名称
}, {
"beginTime": -25200000,
"endTime": -21600000,
"week": 2,
"name": "早",
"stid": "1",
"spid": "23",
"place": "东方半岛"
},
...
]
}
signPlaceInfo 查询签到点详情(spid, resolve, reject)
查询签到点详情 spid 返回值:签到点详情
Parameters:
Name | Type | Description |
---|---|---|
spid |
string | 必需 签到点id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回参数示例
{
"spid": 1, //number 签到点id
"name": "康和盛大厦1", //string 签到点名称
"lat": 22.565752936830386, //number 经度
"lng": 113.94782850347625, //number 纬度
"scope": 200, //number 签到范围
"status": 200 //number 返回码
}
startMoniter 开启监控(params, resolve, reject, statCallback)
开启监控
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_startMoniter> | B必选 传入的参数 |
resolve |
function | 必选 成功回调 |
reject |
function | 不是必选 失败回调 |
statCallback |
Function_stats | 不是必选 实时视音频数据统计 |
startMoniters 开始批量监控(params, resolve, reject)
Parameters:
Name | Type | Description |
---|---|---|
params |
obj.<params> | 参数 |
resolve |
function | 成功的回调 |
reject |
function | 失败的回调 |
stopAllMoniter 结束全部监控(resolve, reject)
结束全部监控
Parameters:
Name | Type | Description |
---|---|---|
resolve |
function | 成功的回调 |
reject |
function | 失败的回调 |
stopMoniter 结束单个监控(id, resolve, reject, statCallback)
结束单个监控
Parameters:
Name | Type | Description |
---|---|---|
id |
number | 必选 结束监控成员id |
resolve |
function | 成功回调 |
reject |
function | 失败回调 |
statCallback |
Function_stats | 实时视音频数据统计 |
subscribeGpsByDevice -订阅设备的gps(options, resolve, reject)
订阅设备的gps
Parameters:
Name | Type | Description |
---|---|---|
options |
Array.<int> | personnel 人员id集合 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<status> | 状态返回 |
Example
{
personnel:[1,2,3,4,5]
}
subscribeGpsByGroup -订阅一个组的gps(room, resolve, reject)
订阅一个组的gps
Parameters:
Name | Type | Description |
---|---|---|
room |
int | 组id |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
... |
obj.<status> | 状态返回 |
Example
{
room:2312
}
switchGroup 切换群组(params, resolve, reject)
切换群主
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_switchGroup> | 群组的id |
resolve |
Function_resolveObj | 成功回调 |
reject |
function | 失败回调 |
transferDevice - 设备调拨(sourceld, targetld, devicelds, resolve, reject)
设备调拨 输入参数
Parameters:
Name | Type | Description |
---|---|---|
sourceld |
int | 待转移的设备id |
targetld |
int | 待接受的用户id |
devicelds |
Array.<int> | 设备id集合 |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<transferDevice> | 返回参数 |
Example
{
sourceId:1, //待转移的用户id
targetId:1, //待接受的用户id
deviceIds:[1,2,3] //设备集合
}
transferUnit -获取文件列表(params, resolve, reject)
获取文件列表
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_getFilesByParams> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
transferUnit -转移部门(params, resolve, reject)
转移部门
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_transferUnit> | 必选 |
resolve |
function | 必选 成功的回调 |
reject |
function | 可不选 失败的回调 |
unBindDevice - 解绑设备(options, resolve, reject)
解绑设备 输入参数
Parameters:
Name | Type | Description |
---|---|---|
options |
int | 待解绑的用户id |
resolve |
Function__obj | 成功的回调 |
reject |
obj.<Function_RcCode> | 失败的回调 |
... |
Obj.<unBindDevice> | 返回参数 |
Example
{
userId:1 //待绑定的用户id
}
unBindWorkShiftDevices 查询未分配签到班次的设备列表(bid, resolve, reject)
查询未分配签到班次的设备列表 bid 返回值:用户列表
Parameters:
Name | Type | Description |
---|---|---|
bid |
int | 必选 班次id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
... |
int.<code> | status返回码 |
Example
返回参数示例
{
"status": 200, //int 返回码
"datas": [ //array 设备用户列表
{
"uid": 404, //int 用户id
"name": "Wilson233", //string 用户名称
"isBound": 2 //int 0:未被分配 1:已分配 2:被其他班次分配
}
]
}
unsubscribeAll 取消所有的订阅(resolve, reject)
Parameters:
Name | Type | Description |
---|---|---|
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
unsubscribeGps -取消单个或所有的订阅(personnel, resolve, reject)
取消单个或所有的订阅
Parameters:
Name | Type | Description |
---|---|---|
personnel |
Array | 人员id集合 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
Example
{
personnel:[1,2,3,4,5]
}
uploadUpPackage 上传升级安装包(params, resolve, reject)
上传升级安装包
Parameters:
Name | Type | Description |
---|---|---|
params |
Obj.<params_uploadUpPackage> | 参数 |
resolve |
function | 必选 成功的回调 |
reject |
function | 不是必选 失败的回调 |
workShiftInfo 签到班次(bid, resolve, reject)
签到班次详情 bid 返回值:班次详情
Parameters:
Name | Type | Description |
---|---|---|
bid |
int | 必选 班次id |
resolve |
function | 必选 成功的回调 |
reject |
Function_RcCodeMsg | 不是必选 失败的回调 |
Example
返回示例
{
name: 谷歌, //string 班次名称
bid: 18, //int 班次id
signtimesList:[{ //object 班次需要签到的时间段列表
"beginTime": -25200000, //int 开始时间
"endTime": -21600000, //int 结束时间
"week": 1, //int 星期
"name": "早", //string 时间段名称
"stid": "1", //int 时间段标识(早班,午班等标识)
"spid": "23", //int 关联签到点id
"place": "东方半岛" //string 关联签到点名称
}, {
"beginTime": -25200000,
"endTime": -21600000,
"week": 2,
"name": "早",
"stid": "1",
"spid": "23",
"place": "东方半岛"
}, {
"beginTime": -25200000,
"endTime": -21600000,
"week": 3,
"name": "早",
"stid": "1",
"spid": "23",
"place": "东方半岛"
},
...
]
}
Type Definitions
allocateDevice
设备分配 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
bindDevice
绑定设备 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
code
返回状态码code
Properties:
Name | Type | Description |
---|---|---|
0 |
int | 初始化成功 |
200 |
int | 请求成功 |
202 |
int | 存在绑定关系,操作失败 |
203 |
int | 名称不能重复 |
204 |
int | 已存在, 不能重复 |
205 |
int | 围栏绑定了设备, 请解绑后删除 |
206 |
int | 班次绑定了设备,请解绑后删除 |
207 |
int | 该角色已经被用户绑定,请解绑后删除 |
208 |
int | 群主绑定了设备,请解绑后删除 |
209 |
int | 该部门下有人员, 请删除后再次操作 |
210 |
int | 人员编号冲突 |
211 |
int | 该设备识别号已注册 |
212 |
int | app下已经发布了版本, 请删除后再次操作 |
300 |
int | token为空,可能未登陆 |
213 |
int | 参数不能包括特殊字符 |
401 |
int | token无效 |
406 |
int | 设备不在线 |
407 |
int | 创建调度的人在调度 |
460 |
int | 服务器地址为空 |
461 |
int | 参数不能为空 |
462 |
int | 参数异常 |
463 |
int | 已经登陆过 |
464 |
int | 不能删除设备文件 |
465 |
int | 麦克风不能用 |
466 |
int | RTC异常 |
467 |
int | 已经有人说话 |
468 |
int | 该设备不在监控房间 |
469 |
int | 该设备不是被监控的状态 |
470 |
int | 已经邀请改设备进入监控 |
471 |
int | 结束失败 ,录制时间太短 |
500 |
int | 系统错误 |
410 |
int | 账号密码错误 |
411 |
int | 用户不存在 |
403 |
int | 没有权限 |
999 |
int | 其他异常 |
Data
Properties:
Name | Type | Description |
---|---|---|
recordAudio |
Number | 本地录音,0关闭,1开启 |
recordVideo |
Number | 本地录像0关闭,1开启 |
serverRecordAudio |
Number | 远程录音,0关闭,1开启 |
serverRecordAudio |
Number | 远程录像,0关闭,1开启 |
datas_getBindFences
已绑定围栏的设备列表 返回值
Properties:
Name | Type | Description |
---|---|---|
status |
array.<code> | 返回码 |
msg |
String | 返回信息 |
datas |
Array.<object> | 其他 |
Example
{
status: 200,
datas:
[
{
uid:1, //用户id
name:'小明' //用户名称
},
{
...
}
]
}
datas_getUnBindFences
未绑定围栏的设备列表 返回值
Properties:
Name | Type | Description |
---|---|---|
status |
array.<code> | 返回码 |
msg |
String | 返回信息 |
datas |
Array.<object> | 其他 |
Example
{
datas:[
{
uid:1, //人员id
name:'小明', //人员名称
user_sn:'sn_23121', //人员编号
isBound:1, //是否绑定 0:未绑定 1:已绑定 2:被他人绑定
puinfo_id:1, //设备id
}
]
}
deleteDeviceOperateLog
删除设备日志
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
deleteRights
删除权限 返回值 操作状态
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
deleteRole
删除角色,清除权限绑定关系
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
device_params
serverRecordAudio|serverRecordVideo(本地录音/录像状态切换,本地拍照)
输入参数
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 监控成员id |
resolve |
function | 必选成功的回调 |
reject |
function | 可不选 失败的回调 |
disableDevice
设备停用 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
downloadDeviceOperateLog
下载设备日志
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
enableDevice
设备启用 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
Face
Properties:
Name | Type | Description |
---|---|---|
id |
Nnmber | 必选 人脸库id |
uname |
String | 必选 识别到的名称 |
time |
String | 必选 上传时间(格式 yyyy-MM-dd hh:mm:ss) |
name |
String | 必选 上传人员名称 |
polNo |
Nnmber | 必选 上传人员编号 |
imgs |
Nnmber | 必选 人脸库图片id集合 |
file
file
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人员id |
storageType |
Number | 必选 存储平台(0平台,1设备,2我的文档) |
type |
Number | 必选 文件类型(0视频,1图片,2音频,3设备日志,9全部) |
function()
回调返回的参数
Properties:
Name | Type | Description |
---|---|---|
status |
Array.<code> | 返回码 |
msg |
String | 返回的信息 |
Function__obj(status, msg)
Parameters:
Name | Type | Description |
---|---|---|
status |
array.<code> | 返回码 |
msg |
string | 返回信息 |
... |
object | 其他(不一定有) |
Function_getGroups(status, msg, -群组列表集合)
Parameters:
Name | Type | Description |
---|---|---|
status |
int | 返回码 |
msg |
string | 返回信息 |
-群组列表集合 |
obj.<groups> |
Function_group_obj(id, name, type, leaderld, leader, time, desc, status)
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组id |
name |
String | 可不选 群组名称 |
type |
Number | 可不选 0普通组 |
leaderld |
Number | 可不选 创建人员id |
leader |
Number | 可不选 创建人员名称 |
time |
String | 可不选 创建时间 |
desc |
String | 可不选 描述 |
status |
Number | 可不选 200成功,具体查看TY.RcCode |
Function_obj(status, msg, groups)
成功的回调函数 返回的参数
Parameters:
Name | Type | Description |
---|---|---|
status |
array.<code> | 返回码 |
msg |
String | 返回信息 |
groups |
Obj.<groups> | 返回列表集合说 |
Function_obj_faces(status, rows, total)
Parameters:
Name | Type | Description |
---|---|---|
status |
Number | 必选 200成功,其他失败 |
rows |
Obj.<Face> | 必选 人脸库信息 |
total |
Number | 必选 总条数 |
Function_obj_group_list(status, rows, total)
Parameters:
Name | Type | Description |
---|---|---|
status |
Number | 必选 200成功,其他失败 |
rows |
Obj.<Group> | 必选 群组列表数据 |
total |
Number | 必选 总条数 |
Function_obj_groupUser(status, members)
分配群组参数
Parameters:
Name | Type | Description |
---|---|---|
status |
Number | 200成功,具体查看TY.RcCode |
members |
Obj.<Members> | 组内成员列表 |
Function_obj_result(status, rows, total)
Parameters:
Name | Type | Description |
---|---|---|
status |
Number | 必选 200成功,其他失败 |
rows |
Array.<Result> | 必选 人脸库信息 |
total |
Number | 必选 总条数 |
Function_obj_result_getUserByParams(status, rows, total)
Parameters:
Name | Type | Description |
---|---|---|
status |
Number | 必选 200成功,其他失败 |
rows |
obj.<User> | 用户信息 人脸库信息 |
total |
Number | 必选 总条数 |
Function_RcCode
Properties:
Name | Type | Description |
---|---|---|
SOCKET_INIT_SUCCESS |
{code:0,msg:"初始化成功"}, //socket初始化成功 | |
RC_CODE_S_OK |
{code:200,msg:"请求成功"}, //请求成功 | |
ACTION_BY_BIND |
{code:202,msg:"存在绑定关系,操作失败"}, | |
GROUP_NAME_SINGLE |
{code:203,msg:"名称不能重复"}, | |
USER_EXIST |
{code:204,msg:"已存在,不能重复"}, //请求成功 | |
FENCE_BY_BIND |
{code:205,msg:"围栏绑定了设备,请解绑后删除"}, | |
WORK_SHFIT_BY_BIND |
{code:206,msg:"班次绑定了设备,请解绑后删除"}, | |
ROLE_BY_BIND |
{code:207,msg:"该角色已被用户绑定,请解绑后删除"}, | |
GROUP_BY_BIND |
{code:208,msg:"群组绑定了设备,请解绑后删除"}, | |
DEPT_BY_BIND |
{code:209,msg:"该部门下有人员,请删除后再次操作"}, | |
USER_CODE_EXIST |
{code:210,msg:"人员编号冲突"}, | |
DEV_CODE_EXIST |
{code:211,msg:"该设备识别号已注册"}, | |
APP_VERSION_EXIST |
{code:212,msg:"app下已经发布了版本,请删除后再次操作"}, | |
EMPTY_TOKEN |
{code:300,msg:"token为空,可能未登录"}, //请求头没有token | |
SPECIAL_PARAMS |
{code:213,msg:"参数不能包括特殊字符"}, //请求头没有token | |
INVALID_TOKEN |
{code:401,msg:"token无效"}, //请求头没有token | |
DEV_OUTLINE |
{code:406,msg:"设备不在线"}, | |
DISPATCHER_DISPATCHER |
{code:407,msg:"创建调度的人在调度"}, | |
EMPTY_SERVER |
{code:460,msg:"服务器地址为空"}, //请求头没有token | |
EMPTY_PROPS |
{code:461,msg:"参数不能为空"}, //请求头没有token | |
PARAMETERS_ABNORMAL |
{code:462,msg:"参数异常"},//参数异常 | |
LOGINED |
{code:463,msg:"已经登录过"}, //请求头没有token | |
DEVICE_FILE_DELETE_LIMIT |
{code:463,msg:"不能删除设备文件"}, //请求头没有token | |
MICROPHONE_LIMIT |
{code:465,msg:"麦克风不可用"}, //请求头没有token | |
RTC_ABNOMAL |
{code:466,msg:"RTC异常"}, //请求头没有token | |
OTHER_TALK |
{code:467,msg:"已有人在说话"}, //请求头没有tokenNOT_SUBSCRIBE_DEVICE | |
NOT_STREAM |
{code:468,msg:"该设备不在监控房间"}, //请求头没有token | |
NOT_SUBSCRIBE_DEVICE |
{code:469,msg:"该设备不是被监控状态"}, //请求头没有token | |
DEVICE_MONITER_EXIST |
{code:470,msg:"已经邀请该设备进入监控"}, //请求头没有token | |
RECORD_LESS |
{code:471,msg:"结束失败,录制时间太短"}, //请求头没有token | |
SYSTEM_ERROR |
{code:500,msg:"系统错误"}, | |
LOGIN_FAIL |
{code:410,msg:"账号密码错误"},//登录失败==》账号密码错误 | |
LOGIN_USER_FAIL |
{code:411,msg:"用户不存在"},//登录失败==》用户不存在 | |
LIMIT_AUTHORITY |
{code:403,msg:"没有权限"}, //权限不够, | |
OTHER_ABNORMAL |
{code:999,msg:"其他异常"}//参数 |
Function_RcCodeMsg
RcCodeMsg 返回状态
Properties:
Name | Type | Description |
---|---|---|
status |
Array.<code> | 返回状态码 |
msg |
String | 返回信息 |
Function_resolveObj(status, msg, user)
Parameters:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
user |
obj.<switchGroup_user> | 用户信息 |
Function_stats()
实时视音频数据统计
Example
[{
"type": "VideoBWE",
"id": "",
"stats": {
"available_send_bandwidth": "0",
"available_receive_bandwidth": "762808",
"transmit_bitrate": "0",
"retransmit_bitrate": "0"
}
}, {
"type": "ssrc_audio_recv",
"id": "ssrc_3672166965_recv",
"stats": {
"bytes_rcvd": "44753",
"delay_estimated_ms": "190",
"packets_rcvd": "449",
"packets_lost": "0",
"codec_name": "opus"
}
}, {
"type": "ssrc_video_recv",
"id": "ssrc_3867188859_recv",
"stats": {
"bytes_rcvd": "721034",//收到字节大小
"packets_rcvd": "576",
"packets_lost": "0",//丢失字节大小
"firs_sent": "0",
"nacks_sent": "1",
"plis_sent": "0",
"frame_width": "1280",//分辨率宽
"frame_height": "720",//分辨高
"framerate_rcvd": "21",//收到的帧率
"framerate_output": "21",//帧率输出
"current_delay_ms": "92",
"codec_name": "H264"
}
}]
Function_User()
Properties:
Name | Type | Description |
---|---|---|
roleld |
Number | 必选 角色id |
departmentName |
String | 必选 部门名称 |
departmentId |
Number | 不是必选 部门id |
name |
String | 不是必选 人员名称 |
account |
String | 必选 人员编号(也是登录账号 |
describe |
String | 不是必选 描述 |
phone |
String | 不是必选 手机号码 |
email |
String | 不是必选 邮箱 |
getAllocatedDevice
已分配的设备列表 返回参数
Properties:
Name | Type | Description |
---|---|---|
name |
String | 人员名称 |
id |
int | 人员id |
Example
{
name:'小明', //人员名称
id:1, //设备id
}
getAppInfo
Properties:
Name | Type | Description |
---|---|---|
status |
array.<code> | 返回码 |
id |
int | id |
instruction |
int | 备注 |
name |
int | APP名称 |
Example
{
"status": 200, //返回码
id:1, //id
instruction:'详细信息', //备注
name:'版本名称', //APP名称
}
getAppList
Properties:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status |
array.<code> | 返回码 | ||||||||||||||||||
total |
int | 数据总条数 | ||||||||||||||||||
rows |
array | 数据集合
Properties
|
Example
{
"total": 3,
"rows": [
{
"id": 32,
"app_id": "e165421110ba03099a1c0393373c5b43",
"createtime": "2019-02-16 11:14:22",
"instruction": "1",
"name": "233"
},
...
],
"status": 200
}
getAppVersionList
获取App版本列表
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status |
array.<code> | 返回码 | ||||||||||||||||||||||||||||||
total |
int | 数据总条数 | ||||||||||||||||||||||||||||||
rows |
array | 数据集合
Properties
|
Example
{
"total": 1,
"rows": [
{
"id": 71,
"activite": 1,
"filename": "ivmcc_telyes_release_1.7.24_993.apk",
"instruction": "",
"os": "Android",
"type": 0,
"version": "ivmcc_telyes_release_1.7.24_993",
"version_code": 993,
},
...
],
"status": 200
}
getBindedScanUrl
获取绑定设备的二维码地址 返回参数
Properties:
Name | Type | Description |
---|---|---|
url |
String | 二维码地址 |
Example
{
url:'https://baidu:3005' //二维码地址
}
getChildRightsList
获得下级权限列表 返回值 操权限列表
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
title:'', //权限标题
rights_type:1, //权限类型
url:'/a/b', //权限地址
id:1, //主键id
pid:2, //上级id
sort:1, //上级id,无显示自己
child_num:5, //下级权限的数目
desc:'' //备注
}
getDeviceInfo
获取设备信息 返回参数
Properties:
Name | Type | Description |
---|---|---|
DevNo |
String | 设备编号 |
name |
String | 名称 |
type |
int | 设备类型 |
desc |
String | 备注 |
imei |
int | 唯一imei |
MAC |
String | 网卡地址 |
Example
{
DevNo:'dv_2312', //设备编号
name :'小明', //名称
type :1, //设备类型
desc :'前台摄像头', //备注
imei :589523658521662, //唯一imei
MAC :'7c-E9-f5-56-48-95' //网卡地址
}
getDeviceLoginLogsByParams
设备登录日志
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
puid:'abc', //设备编号
name:'', //人员名称
ip:'192.168.xxx', //登录ip
port:8080, //登录端口
onlineTime:'2018-05-06 20:03:06', //上线时间
offlineTime:'2018-05-06 20:03:06', //下线时间
curTime:2032, //本次时长
totalTime:5622556 //总共时长
}
getDeviceOperateLogsByParams
设备操作日志文件检索
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
id:1, //文件id
name:'', //文件名称
startTime:'', //开始时间(视频)
endTime:'', //结束时间(视频)
size:1313254, //文件大小
duration:200, //文件长度
type:1, //文件类型
desc:'aa' //文件备注
storageType:1 //存储类型 (平台/设备/本地)
}
getDevicesByParams
返回的参数
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
total |
int | 数据总条数 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rows |
object | 数据对象
Properties
|
Example
{
rows:[
{
pid:1, //设备id
id:1, //用户主键id
name:'小明', //用户名称
userSn:'oopac', //用户编号
type:1, //设备类型
puid:'pu_75682', //设备编号
status:1, //设备状态 0 离线,1 在线,2 禁止
deviceName:'设备1', //设备名称
SN:'adlliw', //设备产品序号
MAC:'7c-E9-f5-56-48-95', //网卡地址
language:'cn', //语言
line:1, //在线状态
groupName:'对讲1', //当前组名称
departmentId:1, //部门id
departmentName:'主部门', //部门名称
password:'111111', //设备密码
longitude:153.202301, //当前lng
latitude:23.165247 //当前lat
}
],
total:230
}
getFenceInfo
object返回值
Properties:
Name | Type | Description |
---|---|---|
type |
array.<code> | 返回码 |
msg |
String | 返回信息 |
... |
object | 其他 |
Example
{
id:1, //主键id
coordinates:
[
{
"lat": 22.56636466490955,
"lng": 113.94664075447638
},
...
], //坐标集合
name:'集合', //围栏名称
type:1, //围栏类型
opid:2312, //发起人id
}
getFencesByParams
rows返回值
Properties:
Name | Type | Description |
---|---|---|
type |
array.<code> | 返回码 |
msg |
String | 返回信息 |
total |
int | 总数 |
rows |
Array.<object> | 数据集合 |
Example
{
rows:[
{
id:1, //主键id
coordinates:
[
{
"lat": 22.56636466490955,
"lng": 113.94664075447638
},
...
], //坐标集合
name:'麦克', //围栏名称
type:1, //围栏类型
create_time:'2015-05-05 20:00:10', //创建时间
update_time:'2015-06-05 20:00:10', //修改时间
dept_name:'主部门' //部门
}
],
total:1,
}
getLocal
获取设备本地配置 返回参数
Properties:
Name | Type | Description |
---|---|---|
autoInfrared |
int | 红外线自动 |
login |
String | 登录的ip和端口号 |
autoLogin |
bool | 自动登录 |
bluetooth |
int | 蓝牙开启 |
capture |
String | 自动抓拍名称 |
fileName |
int | 录像文件名称(0默认文件, 1设备识别号) |
language |
int | 语言(0中文,1英文) |
wifi |
int | wifi开启 |
autoRecord |
int | 自动录像 |
loopSave |
int | 循环存储 |
screen |
int | 屏幕常亮 |
volume |
int | 音量大小 |
baseGps |
int | 基站定位 |
gps |
int | 开启定位 |
lte |
int | 4g开启 |
launch |
int | 开机自启动开启 |
onlineTime |
int | 设备在线时间,单位小时 |
time |
int | 0不同步 ,1同步 |
Example
{
autoInfrared: 480, //红外线自动
login: "", //登录的ip和端口号
autoLogin: true, //自动登录
bluetooth: 0, //自动抓拍名称
capture: "", //自动抓拍名称
fileName: 0, //录像文件名称(0默认文件,1设备识别号)
language: 0, //语言(0中文,1英文)
wifi: 1, //wifi开启
loopSave: 0, //循环存储
screen: 1, //屏幕常亮
volume: 100, //音量大小
autoRecord: 0, //自动录像
baseGps: 1, //基站定位
gps: 1, //定位开启
lte: 1, //4g开启
launch: 1, //开机自启动开启
onlineTime:10, //设备在线时间,单位小时
time:0 //0不同步,1同步
}
getMedia
获取设备媒体配置 返回参数
Properties:
Name | Type | Description |
---|---|---|
resolution |
int | 分辨率(480为720x480,720为1280x720,1080为1920x1080) |
time |
bool | 是否显示时间(true显示,false不显示) |
text |
int | 文本信息(空串表示不显示文本信息) |
positionType |
int | 位置显示类型(0位置,1地址) |
position |
int | 叠加位置(0左上,1左下,2右上,3右下,4四周) |
prerecordDelay |
int | 预录时间长度(单位秒) |
delayRecordDelay |
int | 延录时间长度(单位秒) |
recordDelay |
int | 录像时间长度(单位分钟) |
getMediaInfo
获取设备音视频状态 返回参数
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
recordAudio |
int | 录音状态 |
recordVideo |
int | 录像状态 |
Example
{
id:1, //人员id
recordAudio:1, //录音状态
recordVideo:0 //录像状态
}
getPicture
获取设备拍照配置 返回参数
Properties:
Name | Type | Description |
---|---|---|
resolution |
int | 分辨率(13为48002700,18为56323168,23为64003600,34为78084392) |
shots |
int | 连拍张数 |
Example
{
resolution: 13, //分辨率(13为4800*2700,18为5632*3168,23为6400*3600,34为7808*4392)
shots: 16 //连拍张数
}
getRightsInfo
获得权限详情 权限信息
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
rights_id:2, //主键id
rights_type:'1', //权限类型
rights_url:'/a/b', //权限地址
rights_desc:'查询列表', //权限备注
menu_title:'查询', //权限标题
parent_rights:1, //上级主键
parent_title:'检索模块' //上级标题
}
getRightsList
获取所有权限列表 返回值 权限列表
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
data |
Array.<object> | 权限集合 |
Example
{
data:[ //权限集合
{
id:2, //主键id
title:'按钮', //权限标题
pid:1, //父级id
rights_type:1, //权限类型
url:'/a/c', //权限地址
have:20 //角色关联id
}
]
}
getRoleInfo
获取角色详情
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
data:{
role:[
{
role_id:1, //角色主键
role_name:'管理', //角色名称
role_desc:'备注', //备注
def:0
}
],
roleRights:[
{
id:2, //关联表主键
title:'', //权限标题
pid:3, //父级外键
rights_type:1, //权限类型
url:'/a/b', //地址
have:2 //上级id
}
]
}
}
getRoleList
获取角色列表
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
role_id:1, //主键id
role_name:'管理员', //角色名称
role_desc:'备注', //备注
}
getScanUrl
获取设备扫码换服务器IP地址 返回值
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 在线状态 |
msg |
String | 返回信息 |
... |
object | 其他(不一定有) |
getSignsByParams_rows
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rows |
array | 分页数据集合
Properties
|
||||||||||||||||||||||||||||||||||||
total |
number | 分页总数量 | ||||||||||||||||||||||||||||||||||||
status |
array.<code> | 返回码 |
Example
返回示例
{
"rows": [ //array 分页数据集合
{
"sid": 2, //number 考勤id
"uid": 1, //number 设备id
"stid": 1, //number 签到时间段标识
"date": 1538064000000, //number 打卡的日期时间戳,具体变现为那一天的0点
"time": null, //number 所属部门id
"uname": "小明", //string 打卡时间 (如果没有打开,则为空)
"mark": "0", //number 是否打卡(0未打卡,1正常)
"banciName": "谷歌", //string 班次名称
"timesName": "早", //string 时间段名称
"period": "-25200000—-21600000",
"dept_name": "主部门"
}
],
"total": 2, //number 分页总数量
"status": 200 //number 返回码
}
getSpace
获取设备剩余空间 返回参数
Properties:
Name | Type | Description |
---|---|---|
space |
int | 内存大小(单位m) |
Example
{
space:100 //内存大小(单位m)
}
getSubRights
获得所有下级权限
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
data |
Array.<object> | 权限集合 |
Example
{
data:[ //权限集合
{
id:2, //主键id
title:'按钮', //权限标题
pid:1, //父级id
rights_type:1, //权限类型
url:'/a/c', //权限地址
have:20 //角色关联id
}
]
}
getUnAllocatedDevice
未分配的设备列表 返回参数
Properties:
Name | Type | Description |
---|---|---|
name |
String | 人员名称 |
id |
int | 用户id |
Example
{
name:'小明', //人员名称
id:1, //设备id
}
getUnBindedDevice
未绑定设备列表 返回值
Properties:
Name | Type | Description |
---|---|---|
name |
String | 名称 |
id |
int | 用户id |
puid |
String | 设备编号 |
Example
{
name:'pu_设备1', //名称
id:1,
puid:'pu_2312'
}
getUserByUnit
人员列表
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
String | 返回信息 |
total |
int | 数据总数量 |
row |
Array.<object> | 部门成员集合 |
rows.id |
int | 人员id |
rows.account |
string | 人员账号 |
rows.name |
string | 人员名称 |
rows.phone |
string | phone |
rows.roleId |
int | 角色id |
rows.email |
string | 邮箱 |
rows.departmentName |
string | 所属部门吗v |
rows.departmentId |
int | 所属部门id |
rows.describe |
string | 备注信息 |
rows.line |
int | 是否在线 0:离线 1:在线 |
rows.roleName |
string | 角色名称 |
Example
{
"status": 200,
"rows": [
{
"id": 708,
"account": "zhuxiao",
"name": "zhuxiao",
"phone": "",
"roleId": 61,
"email": "",
"departmentName": "主部门",
"departmentId": 8,
"describe": "",
"line": 0,
"roleName": "zhuxiao"
},
...
],
"total": 82
}
getUserLoginLogsByParams
用户登录日志
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
puid:'abc', //人员编号
name:'', //人员名称
ip:'192.168.xxx', //登录ip
port:8080, //登录端口
onlineTime:'2018-05-06 20:03:06', //上线时间
offlineTime:'2018-05-06 20:03:06', //下线时间
curTime:2032, //本次时长
totalTime:5622556 //总共时长
}
getUserOperateLogsByParams
操作日志
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
name:'小明' //人员名称
time:'2018-06-09 20:20:23' //操作时间
operate:'查询' //操作内容
result:1 //操作结果
description:'aa' //备注
}
getWorkShiftsByParams
返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
Array.<code> | 返回状态码 |
msg |
String | 返回信息 |
total |
int | 数据总条数 |
... |
obj.<rows> | 其他 |
Group
群组信息
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人员id |
name |
String | 不是必选 群组名称 |
type |
Number | 不是必选 0普通组 |
leaderId |
Number | 不是必选 创建人员id |
leader |
Number | 不是必选 创建人员名称 |
time |
String | 不是必选 创建时间 |
desc |
String | 不是必选 描述 |
groups
群组列表集合
Properties:
Name | Type | Description |
---|---|---|
id |
int | 返回码 |
name |
string | 返回信息 |
unallocate |
int | 1为未分配成员集合(不能切换到这个组,00为普通群组,可以切换到这个组) |
type |
int | 群组类型(0为普通群组) |
impFile
impFile
Properties:
Name | Type | Description |
---|---|---|
type |
Number | 必选 1日志文件,0其他文件 |
files |
Array.<impFileObj> | 批量导入文件集合 |
impFileObj
impFileObj
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 文件id |
type |
Number | 文件类型(0视频,1图片,2音频,3设备日志) |
importDeviceOperateLog
导入设备日志
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
loadBindUser
未绑定设备列表 返回值
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
polNo |
String | 人员编号 |
devNo |
String | 设备编号 |
phone |
String | 电话 |
email |
String | 邮箱 |
departmentId |
int | 部门id |
department |
String | 部门名称 |
admin |
int | 是否管理 |
line |
int | 在线状态 |
name |
String | 人员名称 |
sn |
String | 产品序列 |
roleld |
int | 角色id |
roleName |
String | 角色名称 |
Example
[
{
id:1, //人员id
devNo:'pu_1654656', //设备编号
polNo:'ac1cq12', //人员编号
phone:15612354892, //电话
email:'192.365@163.com', //邮箱
departmentId:1, //部门id
department:'主部门', //部门名称
admin:1, //是否管理
line:1, //在线状态
name:'小明', //人员名称
sn:'121213328345655', //人员编号
roleId:1, //角色id
roleName:'调度员' //角色名称
},
...
]
loadDepartmentCough
获取部门和部门成员
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
Example
{
department:[
{
id:1, //主键id
name:'', //名称
type:'', //类型
pId:1, //父级id
isParent:1, //是否是部门
status:, //设备状态
line:, //在线状态
DevNo:'', //设备编号
sn:'ccc' //产品序号
isBound:0 //是否绑定
}
]
}
loadTrackGps
轨迹 返回参数
Properties:
Name | Type | Description |
---|---|---|
user |
Array.<object> | -用户轨迹集合 |
trajectorys |
Array.<object> | 轨迹文件集合 |
Example
{
users:'[
[
{
uid:1, //用户id
lat:23.562688 //纬度
lng:127.1513513 //经度
time:'2019-05-52 23:50:59' //时间
},
{
uid:1, //用户id
lat:23.562688 //纬度
lng:127.1513513 //经度
time:'2019-05-52 23:51:20' //时间
}
],
[
{...},
{...}
]
],
trajectorys:[
{
id:1, //文件id
name:'2312', //人员名称
begintime:'2018-05-06 20:60:30', //开始时间
endtime:'2018-05-07 20:60:30', //结束时间
url:'http://xxx/xxx/a.aac', //地址
duration:200.3, //视音频文件
}
],
}
Members
members -组内成员列表
Properties:
Name | Type | Description |
---|---|---|
name |
String | 所绑定的人员名称 |
puid |
String | 设备编号 |
id |
Number | 人员id |
modifyDevicePwd
修改设备密码 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
modifyRights
添加&修改权限 返回值 操作状态
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
modifyRole
添加或修改角色,更改绑定的权限 返回值 操作状态
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
msg |
string | 返回信息 |
obj_face_result
批量删除人脸库
Properties:
Name | Type | Description |
---|---|---|
ids |
Array | 人脸库id |
obj_getFacesByParams
查询人脸库列表
Properties:
Name | Type | Description |
---|---|---|
pageSize |
Nnmber | 是 |
pageNumber |
Nnmber | 是 |
begintime |
Nnmber | 是 |
endtime |
Nnmber | 是 |
name |
Nnmber | 是 |
devNo |
Nnmber | 是 |
polNo |
Nnmber | 是 |
obj_result
批量删除识别记录
Properties:
Name | Type | Description |
---|---|---|
ids |
Array | 是 |
options_addDevice
options 设备注册
Properties:
Name | Type | Description |
---|---|---|
imei |
int | 唯一imei |
password |
String | 密码 |
desc |
String | 备注 |
adress |
String | 地址 |
type |
int | 设备类型 |
name |
String | 设备名称 |
model |
String | 设备描述 |
Example
{
imei:589658446554, //唯一imei
password:'123', //密码
desc:'备注', //备注
address:'23132', //地址
type:1, //设备类型
name:'设备1', //设备名称
model:'T5' //设备描述
}
options_bindDevice
绑定设备
Properties:
Name | Type | Description |
---|---|---|
deviceld |
int | 待解绑的用户id |
userid |
int | 待绑定的用户id |
Example
{
deviceId:1, //待解绑的用户id
userId:1 //待绑定的用户id
}
options_getDevicesByParams
options 条件搜索设备列表
line,puid,name,enalbe,sortable它们是and的关系,如果不传表示不加
Properties:
Name | Type | Description |
---|---|---|
line |
int | 在线状态 |
puid |
String | 设备编号 |
name |
String | 设备名称 |
enable |
int | 是否启用 |
sortable |
int | 0平台/1设备/2本地 |
pageSize |
int | 页面大小 |
pageNumber |
int | 当前页 |
deviceName |
String | 名称 |
Example
{
line:1, //在线状态
puid:'pu_2312', //设备编号
name:'小明', //设备名称
enable:1, //是否启用
sortable:1, //0 平台/ 1 设备/ 2 本地
pageSize:10, //页面大小
pageNumber:1, //当前页
deviceName:'设备2' //名称
}
options_loadBindUser
未绑定设备列表
Properties:
Name | Type | Description |
---|---|---|
id |
int | 设备id |
PolNo |
String | 人员编号 |
DevNo |
String | 设备编号 |
line |
int | 在线状态 |
bound |
int | 绑定状态 |
name |
String | 人员名称 |
pageSize |
int | 行数 |
pageNumber |
int | 页数 |
sortable |
String | 排序(参数列值) |
Example
{
id:1, //设备id
PolNo:'pu_2312', //人员编号
DevNo:'au_2312', //设备编号
line:1, //在线状态
bound:1, //绑定状态
name:'小明', //人员名称
pageSize:10, //行数
pageNumber:1, //页数
sortable:'name' //按照名称排序
}
options_modifyDevice
options 修改设备
Properties:
Name | Type | Description |
---|---|---|
id |
int | 设备id |
name |
String | 设备信息 |
type |
int | 设备类型 |
model |
String | 形容 |
adress |
String | 设备地址 |
desc |
String | 备注 |
Example
{
id:1, //设备id
name:'小明', //设备名称
type:1, //设备类型
model:'T5', //形容
adress:'xxx', //设备地址
desc:'备注' //备注
}
options_setLocal
设置设备本地配置
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
autoInfrared |
int | 红外线自动 |
login |
String | 登录的ip和端口号 |
autoLogin |
bool | 自动登录 |
bluetooth |
int | 蓝牙开启 |
capture |
String | 自动抓拍名称 |
fileName |
int | 录像文件名称(0默认文件, 1设备识别号) |
language |
int | 语言(0中文,1英文) |
wifi |
int | wifi开启 |
autoRecord |
int | 自动录像 |
loopSave |
int | 循环存储 |
screen |
int | 屏幕常亮 |
volume |
int | 音量大小 |
baseGps |
int | 基站定位 |
gps |
int | 开启定位 |
lte |
int | 4g开启 |
launch |
int | 开机自启动开启 |
onlineTime |
int | 设备在线时间,单位小时 |
time |
int | 0不同步 ,1同步 |
Example
{
id:1 //人员id
autoInfrared: 480, //红外线自动
login: "", //登录的ip和端口号
autoLogin: true, //自动登录
bluetooth: 0, //自动抓拍名称
capture: "", //自动抓拍名称
fileName: 0, //录像文件名称(0默认文件,1设备识别号)
language: 0, //语言(0中文,1英文)
wifi: 1, //wifi开启
loopSave: 0, //循环存储
screen: 1, //屏幕常亮
volume: 100, //音量大小
autoRecord: 0, //自动录像
baseGps: 1, //基站定位
gps: 1, //定位开启
lte: 1, //4g开启
launch: 1, //开机自启动开启
onlineTime:10, //设备在线时间,单位小时
time:0 //0不同步,1同步
}
options_setMedia
设置设备媒体配置
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
resolution |
int | 分辨率(480为720x480,720为1280x720,1080为1920x1080) |
time |
bool | 是否显示时间(true显示,false不显示) |
text |
int | 文本信息(空串表示不显示文本信息) |
positionType |
int | 位置显示类型(0位置,1地址) |
position |
int | 叠加位置(0左上,1左下,2右上,3右下,4四周) |
prerecordDelay |
int | 预录时间长度(单位秒) |
delayRecordDelay |
int | 延录时间长度(单位秒) |
recordDelay |
int | 录像时间长度(单位分钟) |
Example
{
id:1, //人员id
time: false, //是否显示时间(true显示,false不显示)
text: "", //文本信息(空串表示不显示文本信息)
resolution: 480, //分辨率(480为720x480,720为1280x720,1080为1920x1080)
positionType: 1, //位置显示类型(0位置,1地址)
position: 1, //叠加位置(0左上,1左下,2右上,3右下,4四周)
prerecordDelay: 16, //预录时间长度(单位秒)
delayRecordDelay: 16,//延录时间长度(单位秒)
recordDelay: 16 //录像时间长度(单位分钟)
}
param_addUnit
addUnit 添加部门 参数
Properties:
Name | Type | Description |
---|---|---|
parent_id |
int | 父级部门id |
name |
String | 部门名称 |
department_code |
String | 部门编号 |
Example
{
parent_id:'2', //父级部门id
name:'研发部门', //部门名称
department_code:'abc' //部门编号
}
param_deleteDeviceOperateLog
删除设备日志
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
array |
Array.<int> | 文件id集合 |
Example
{
id:1, //人员id
array:[1,2,3] //文件id集合
}
param_downloadDeviceOperateLog
下载设备日志
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
storageType |
int | 存储类型 |
type |
int | 文件类型 |
did |
int | 人员id |
Example
{
id:1, //文件id
storageType:1, //储存类型
type:2, //文件类型
did:2312 //人员id
}
param_exportSigns
导出考勤记录 参数
Properties:
Name | Type | Description |
---|---|---|
name |
string | 不是必需 设备关联的人员名称 |
mark |
string | 不是必需打卡状态(0未打卡,1正常) |
beginDate |
string | 不是必需 开始时间 eg:2018-08-23 19:16:50 |
endDate |
string | 不是必需 结束时间 eg:2018-08-23 19:16:50 |
sortable |
object | 不是必选 排序对象 sortable |
Example
排序对象
{
prop: 'xx', //排序字段
order:'desc', //排序方式 desc 或者 asc
}
param_getAppList
获取app列表
Properties:
Name | Type | Description |
---|---|---|
pageNumber |
int | 页数 |
pageSize |
int | 行数 |
sortable |
String | 排序列(参数返回列) |
Example
{
pageNumber:1, //页数
pageSize:10, //行数
sortable:'name', //排序列(参考返回列)
}
param_getAppVersionList
获取App版本列表
Properties:
Name | Type | Description |
---|---|---|
app_id |
string | APP 的 app_id字段 (必需)(VersionManager.getAppList.row.id) |
pageNumber |
int | 当前页 |
pageSize |
int | 行数 |
sortable |
object | 排序(参照返回列) |
Example
返回参数
{
app_id:'1E2D3365E', //版本id
pageNumber:1, //当前页
pageSize:10, //行数
sortable:{
prop:'', //排序列(参照返回列)
order:'desc' //排序方式
}
}
param_getChildRightsList
获得下级权限列表 参数
Properties:
Name | Type | Description |
---|---|---|
id |
int | 主键id |
name |
string | 权限名称(模糊匹配) |
type |
int | 权限类型 |
Example
{
id:3,
name:'删除',
type:1
}
param_getDeviceLoginLogsByParams
设备登录日志
Properties:
Name | Type | Description |
---|---|---|
puid |
string | 设备编号 |
beginDate |
string | 开始时间 |
endDate |
string | 结束时间 |
name |
string | 人员名称 |
pageSize |
int | 行数 |
pageNumber |
int | 当前页 |
sortable |
object | 排序(参照返回列) |
Example
{
{
puid:'', //设备编号
beginDate:'2018-02-01 20:30:56',//开始时间
endDate:'2018-02-02 20:30:56', //结束时间
name:'', //人员名称
pageSize:10, //行数
pageNumber:1, //页数
sortable:{
prop:'', //排序列(根据返回列)
order:'desc' //排序方式
}
}
}
param_getDeviceOperateLogsByParams
设备操作日志文件检索
Properties:
Name | Type | Description |
---|---|---|
personnel |
Array.<int> | 人员id集合 |
storageType |
int | 平台类型 |
Example
{
personnel;[
1,2,3
],
storageType:1
}
param_getSignsByParams
查询考勤记录列表 参数
Properties:
Name | Type | Description |
---|---|---|
pageNumber |
integer | 必需 分页页码 eg:1 |
pageSize |
integer | 必需 分页条数 eg:10 |
quick |
integer | 不是必需 1为快速搜索 , 0为实时搜索 |
name |
string | 不是必需 设备关联的人员名称 |
mark |
string | 打卡状态(0未打卡,1正常) |
beginDate |
string | 不是必需 开始时间 eg:2018-08-23 19:16:50 |
endDate |
string | 不是必需 结束时间 eg:2018-08-23 19:16:50 |
param_getUnitsByParams
部门列表
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
name |
String | 返回信息 |
department |
Array.<object> | 部门集合 |
Example
{
department:[
{
id:1, //主键id
name:'主部门', //部门名称
type:1, //部门类型
pId:0, //父级id
code:'abc' //部门编号
}
]
}
param_getUserByUnit
获取部门下的人员列表
Properties:
Name | Type | Description |
---|---|---|
id |
int | 部门id |
line |
int | 在线状态 |
name |
string | 人员名称 |
account |
string | 人员编号 |
pageSize |
int | 行数 |
pageNumber |
int | 页数 |
sortable |
string | 排序列 |
Example
{
id:1, //部门id
line:1, //在线状态
name:'', //人员名称
account:'', //人员编号
sortable:{
prop:'', //排序列(根据返回列)
order:'desc' //排序方式
}
}
param_getUserLoginLogsByParams
用户登录日志
Properties:
Name | Type | Description |
---|---|---|
beginDate |
string | 开始时间 |
endDate |
string | 结束时间 |
name |
string | 人员名称 |
pageSize |
int | 行数 |
pageNumber |
int | 当前页 |
sortable |
object | 排序(参照返回列) |
Example
{
{
beginDate:'2018-02-01 20:30:56',//开始时间
endDate:'2018-02-02 20:30:56', //结束时间
name:'', //人员名称
pageSize:10, //行数
pageNumber:1, //页数
sortable:{
prop:'', //排序列(根据返回列)
order:'desc' //排序方式
}
}
}
param_getUserOperateLogsByParams
操作日志
Properties:
Name | Type | Description |
---|---|---|
beginDate |
string | 开始时间 |
endDate |
string | 结束时间 |
name |
string | 人员名称 |
pageSize |
int | 行数 |
pageNumber |
int | 当前页 |
sortable |
object | 排序(参照返回列) |
operate |
string | 操作内容(模糊匹配) |
Example
{
{
beginDate:'2018-02-01 20:30:56',//开始时间
endDate:'2018-02-02 20:30:56', //结束时间
name:'', //人员名称
pageSize:10, //行数
pageNumber:1, //页数
operate:'拍照', //操作内容(模糊匹配)
sortable:{
prop:'', //排序列(根据返回列)
order:'desc' //排序方式
}
}
}
param_importDeviceOperateLog
导入设备日志
Properties:
Name | Type | Description |
---|---|---|
id |
int | 人员id |
array |
Array.<int> | 文件id集合 |
type |
int | 文件类型 |
Example
{
id:1, //人员id
array:[1,2,3], //文件id集合
type:1 //文件类型
}
param_modifyApp
添加或修改app
Properties:
Name | Type | Description |
---|---|---|
id |
int | id(添加时不需要) |
instruction |
int | 备注 |
name |
int | app名称 |
Example
{
id:1, //id
instruction:'详细信息', //详细信息
name:'版本名称', //版本名称
}
param_modifyAppVersion
添加或者修改APP版本
Properties:
Name | Type | Description |
---|---|---|
file |
file | 文件流(FormData(file)) |
activite |
int | 状态(0 不可用 / 1 可用) |
filename |
String | 文件名称 |
instruction |
String | 备注 |
os |
String | 系统 (Android or ios) |
title |
String | 标题 |
type |
int | 类型(0 不强制更新 / 1 强制) |
version |
String | 版本名 |
version_code |
String | 版本编号 |
id |
file | 版本id (添加非必要) |
Example
{
activite:1, //状态(0 不可用 / 1 可用)
filename:'1.2.1.zip', //文件名称
instruction:'解决了..,添加了...', //描述
os:'android', //系统
title:'节日定制', //标题
type:1, //类型(0 不强制更新 / 1 强制)
version:'1.2.1', //版本名
version_code:'abc', //版本编号
id:1 //版本id (添加非必要)
}
param_modifyRights
添加&修改权限 参数
Properties:
Name | Type | Description |
---|---|---|
rights_type |
int | 权限类型 |
rights_url |
string | 地址路径 |
rights_desc |
string | 备注 |
menu_title |
string | 标题 |
parent_rights |
string | 上级权限id |
rights_id |
int | 主键id(修改时使用) |
Example
{
rights_type:1,
rights_url:'/a/c',
rights_desc:'添加',
menu_title:'人员添加',
parent_rights:1,
rights_id:2,
}
param_modifyRole
添加或修改角色,更改绑定的权限
Properties:
Name | Type | Description |
---|---|---|
role_name |
string | 角色名称 |
role_desc |
string | 备注 |
role_id |
string | 角色id(修改时使用) |
Example
{
role_name:'添加', //角色名称
role_desc:'人员', //备注
role_id:1 //角色id (修改时使用)
}
param_modifyUnit
修改部门 参数
Properties:
Name | Type | Description |
---|---|---|
id |
int | 部门id |
parent_id |
int | 父级部门id |
name |
String | 部门编名称 |
department_code |
String | 部门编号 |
Example
{
id:1, //部门id
parent_id:'2', //父级部门id
name:'研发部门', //部门名称
department_code:'abc' //部门编号
}
param_setFence
设置围栏 参数
Properties:
Name | Type | Description |
---|---|---|
coordinates |
String | 围栏详情 |
name |
String | 围栏名称 |
type |
int | 围栏类型 |
Example
{
coordinates:
[
{
"lat": 22.56636466490955,
"lng": 113.94664075447638
},
...
], //坐标集合
name:'集合', //围栏名称
type:1 //围栏类型 1圆形 2多边形
}
params
查询群组参数
Properties:
Name | Type | Description |
---|---|---|
pageSize |
Number | 每页条数 必选 |
pageNumber |
Number | 当前页数 必选 |
groupName |
string | 群主名称 可不选 |
type |
Number | 0普通群组 可不选 |
name |
string | 群主名称 可不选 |
params_activeDispatchGroup
Properties:
Name | Type | Description |
---|---|---|
personnel |
array | 调度成员id集合 |
params_addGroup_Or_ModifyGroup
人员添加
Properties:
Name | Type | Description |
---|---|---|
id |
String | 可不选 群组id(空为添加,否则为修改) |
name |
String | 可不选 群组名称 |
type |
Number | 必选 0是普通组 |
describe |
String | 必选 描述 |
params_addUser
人员添加
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组id |
personnel |
array | 必选 人员列表 |
type |
Number | 不是必选 0普通组,2领导组 |
params_allocateGroup
分配群组参数
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人员id |
devicelds |
Array | 不是必选 人员id列表(疑问) |
type |
Number | 不是必选 0普通组 |
params_allSignPlaces
设备绑定到签到班次 请求参数
Properties:
Name | Type | Description |
---|---|---|
name |
string | 不是必选 签到点名称,模糊查询 |
bid |
string | 必选 |
params_deleteFile
删除文件参数
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人员id |
array |
Array.<file> | 必选 删除文件集合 |
params_deleteGroup
删除群组
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群主id |
params_deleteUser
人员删除
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组id |
personnel |
array | 必选 人员列表 |
type |
Number | 不是必选 0普通组,2领导组 |
params_deviceBindWorkShift
删除签到班次 请求参数
Properties:
Name | Type | Description |
---|---|---|
uids |
Array | 必选 绑定的设备用户id列表 |
bid |
int | 必选 班次id |
params_deviceBindWorkShift
设备绑定到签到班次 请求参数
Properties:
Name | Type | Description |
---|---|---|
uids |
Array | 必选 绑定的设备用户id列表 |
bid |
int | 必选 班次id |
Example
请求参数示例
{
uids: [610,16],
bid: 14
}
params_downloadFile
下载文件 输入参数
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人员id |
storageType |
Number | 必选 存储平台(0平台,1设备,2我的文档 |
type |
Number | 必选 文件类型(0视频,1图片,2音频,3设备日志,9全部) |
did |
Number | 必选 人员id |
params_getFencesByParams
查询围栏列表 参数
Properties:
Name | Type | Description |
---|---|---|
type |
int | 围栏类型 |
name |
String | 围栏名称 |
dept_name |
String | 部门名称 |
pageNumber |
int | 当前页 |
pageSize |
int | 行数 |
sortable |
int | 排序的列值 |
Example
{
type:1, //围栏类型
name:'午饭集合', //围栏名称
dept_name:'研发部', //部门名称
pageNumber:1, //当前页
pageSize:10, //行数
sortable:'name' //排序的列值
}
params_getFilesByParams
获取文件参数
Properties:
Name | Type | Description |
---|---|---|
pageSize |
Number | 必选 每页条数 |
pageNumber |
Number | 必选 当前页码 (从1开始) |
personnel |
Array | 必选 人员id;列表 |
storageType |
Number | 必选 存储平台(0平台,1设备,2我的文档) |
type |
String | 必选 文件类型(0视频,1图片,2音频,,3设备日志, |
begintime |
String | 不是必选 开始时间 |
endtime |
String | 不是必选 结束时间 |
params_getResultsByParams
Properties:
Name | Type | Description |
---|---|---|
pageSize |
Number | 是 |
pageNumber |
Number | 是 |
begintime |
String | 是 |
endtime |
String | 是 |
name |
Number | 是 |
devNo |
Number | 是 |
polNo |
Number | 是 |
params_getSignPlacesByParams
设备绑定到签到班次 请求参数
Properties:
Name | Type | Description |
---|---|---|
pageNUmber |
integer | 必选 页码1 |
pageSize |
integer | 必选 一条页数10 |
name |
string | 不是必选 签到点名称,支持模糊查询 |
dept_name |
string | 不是必选 部门名称,支持模糊查询 |
sortable |
object | 不是必选 排序对象 sortable |
Example
排序对象
{
prop: 'xx', //排序字段
order:'desc', //排序方式 desc 或者 asc
}
params_getUserByParams
Properties:
Name | Type | Description |
---|---|---|
pageSize |
Number | 必选 每页条数 |
pageNumber |
Number | 必选 当前页数(从1开始) |
polNo |
string | 不是必选 人员编号 |
name |
string | 不是必选 人员名称 |
params_getUserInfo
人员添加
Properties:
Name | Type | Description |
---|---|---|
roleld |
Number | 必选 角色id |
departmentName |
String | 必选 部门名称 |
departmentId |
Number | 不是必选 部门id |
name |
String | 不是必选 人员名称 |
account |
String | 必选 人员编号(也是登录账号 |
describe |
String | 不是必选 描述 |
phone |
String | 不是必选 手机号码 |
email |
String | 不是必选 邮箱 |
params_getWorkShiftsByParams
根据参数查询签到班次列表
Properties:
Name | Type | Description |
---|---|---|
name |
String | 不是必选 班次名称,支持模糊查询 |
dept_name |
String | 不是必选 部门名称,支持模糊查询 |
pageNumber |
int | 页码 |
pageSize |
int | 每页数据数量 |
sortable |
object | 排序对象 |
Example
{
name:1, //班次名称
dept_name:'一级部门', //部门名称
pageNumber:1, //页码
pageSize:10, //每页数据数量
sortable:{
prop: 'name',//排序字段
order: 'desc'//排序方式desc或者asc
},
}
params_importFile
导入文件参数
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人员id |
files |
Array.<impFile> | 批量导入文件集合 |
params_inactiveDispatchGroup
取消调度的参数
Properties:
Name | Type | Description |
---|---|---|
id |
int | 必选 对讲组id |
params_sendMsg
Properties:
Name | Type | Description |
---|---|---|
personnel |
Array | 必选 广播人员id集合 |
msg |
String | 发送信息 |
params_setSignPlace
设置签到点 请求参数
Properties:
Name | Type | Description |
---|---|---|
lat |
string | 必选 经度 示例:113.15454645 |
Ing |
string | 必选 纬度 示例:23.155115616 |
scope |
integer | 必选 签到范围 示例:200 |
name |
string | 必选 签到点名称 示例:狼山路中 |
spid |
integer | 不是必须 签到点id,为空则添加 , 有id则修改 |
params_setSystemConfig
Properties:
Name | Type | Description |
---|---|---|
logo |
file | 不是必需 子系统LOGO |
logoTop |
file | 不是必需 登录页LOGO |
logoLeft |
file | 不是必需 登录页海报 |
logoRightCenter |
file | 不是必需 登录页平台名称 |
copyright |
String | 不是必需 版权信息 |
zhName_schedule |
String | 不是必需 指控子系统中文标题 |
enName_schedule |
String | 不是必需 指控子系统英文标题 |
zhName_manager |
String | 不是必需 管理子系统中文标题 |
enName_manager |
String | 不是必需 管理子系统英文标题 |
fileIsShare |
String | 不是必需 文件共享 0:否 1:是 |
fileShareAfterIsRemove |
String | 不是必需 文件共享后立即删除 0:否 1:是 |
fileShareSavePath |
String | 不是必需 共享文件存储位置 |
params_startMoniter
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 监控成员id |
el |
String | 渲染的div id |
params_switchGroup
切换群组
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 群组id |
params_transferUnit
params_transferUnit 转移部门的参数
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 部门id |
personnel |
array | 必选 转移id列表。如[3,4,5] |
params_uploadUpPackage
Properties:
Name | Type | Description |
---|---|---|
file |
file | 上传压缩包文件流(当前只支持zip格式压缩包) file(文件流) |
RcCodeMsg
Properties:
Name | Type | Description |
---|---|---|
status |
array.<code> | 返回状态码 |
msg |
string | 返回信息 |
RcCodeMsg
退出登录
Properties:
Name | Type | Description |
---|---|---|
status |
Array.<code> | 返回码 |
msg |
String | 返回的信息 |
rect
rect[]矩形区域
Properties:
Name | Type | Description |
---|---|---|
x |
Number | 必选 x坐标 |
y |
Number | 必选 y坐标 |
h |
Number | 必选 高度 |
w |
Number | 必选 宽度 |
id |
Number | 必选 200成功,其他失败 |
name |
strint | 必选 识别到的人员名称 |
Result
Result 人脸记录
Properties:
Name | Type | Description |
---|---|---|
id |
Number | 必选 人脸记录id |
lat |
float | 必选 纬度 |
lng |
float | 必选 经度 |
time |
String | 必选 上传时间(格式yyyy-MM-dd hh:mm:ss) |
name |
String | 必选 上传人员名称 |
devNo |
Number | 必选 设备编号 |
polNo |
Number | 必选 人员便号 |
img |
Number | 必选 图片id |
rect |
Array.<rect> | 必选 总条数 |
rights
Properties:
Name | Type | Description |
---|---|---|
title |
string | 标题名称 |
url |
string | 权限路径 |
pid |
int | 父级权限id |
id |
int | 权限id |
rows
rows参数说明
Properties:
Name | Type | Description |
---|---|---|
bid |
int | 班次id |
name |
String | 班次名称 |
time |
string | 创建时间 |
dept_name |
string | 所属部门名称 |
Example
{
"total": 3,
"rows": [{
"bid": 14,
"name": "东方半岛",
“dept_name”: "所属部门名称",
"time": "2018-09-03 01:25:27",
}, {
"bid": 15,
"name": "景芬路口",
"time": "2018-08-29 05:01:38",
}, {
"bid": 17,
"name": "俄文",
"time": "2018-09-03 01:28:06",
}],
status:200
}
server_params
Properties:
Name | Type | Description |
---|---|---|
uid |
Number | 监控成员id |
setLocal
设置设备本地配置 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
setMedia
设置设备媒体配置 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
setPicture
设置设备拍照配置 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
State_return
状态返回
Properties:
Name | Type | Description |
---|---|---|
int |
array.<code> | 返回码 |
msg |
String | 返回信息 |
status
返回值
Properties:
Name | Type | Description |
---|---|---|
status |
Array.<code> | 返回码 |
msg |
String | 返回的信息 |
switchGroup_user
Properties:
Name | Type | Description |
---|---|---|
id |
int | 用户id |
name |
string | 用户名称 |
rtcHost |
string | 视频通讯连接地址 |
right |
Obj.<rights> | 当前用户的权限集合 |
status |
Obj.<RcCodeMsg> | 返回状态 |
transferDevice
设备调拨 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
unBindDevice
绑定设备 返回参数
Properties:
Name | Type | Description |
---|---|---|
status |
int.<code> | 返回码 |
Example
{
"status": 200
}
User
人员信息 / 修改人员信息
Properties:
Name | Type | Description |
---|---|---|
roleld |
Number | 必选 角色id |
departmentName |
String | 必选 部门名称 |
departmentId |
Number | 不是必选 部门id |
id |
Number | 不是必选 人员id |
password |
String | 不是必选 密码 |
name |
String | 不是必选 人员名称 |
account |
String | 必选 人员编号(也是登录账号) |
describe |
String | 不是必选 描述 |
phone |
String | 不是必选 手机号码 |
email |
String | 不是必选 邮箱 |