组织实时消息
参数说明
字段 | 必选 | 说明 | 类型 | 备注 |
orgName | Y | 组织名称 | string | |
orgCode | Y | 组织编码 | string | |
parentCode | Y | 上级组织编码 | string | |
sort | Y | 组织同级排序 | int | |
orgType | Y | 组织类型 | string | |
orgSn | N | 组织唯一标识码 | string | |
province | N | 省 | string | |
city | N | 市 | string | |
county | N | 县 | string | |
消息协议
组织新增
{
"method": "org.add",
"id": 1,
"info": {
"orgName": "组织1",
"orgCode": "001001",
"parentCode": "001",
"sort": 10,
"orgType": "01",
"orgSn": "15345w633432334646",
"province": "2280",
"city": "2281",
"county": "2283"
}
}
组织更新
{
"method": "org.update",
"id": 1,
"info": {
"orgName": "组织1",
"orgCode": "001001",
"parentCode": "001",
"sort": 1,
"orgType": "01",
"orgSn": "15345w633432334646",
"province": "2280",
"city": "2281",
"county": "2283"
}
}
组织删除
{
"method":"org.delete",
"id":1,
"info":{
"orgCodes":["001001"]
}
}
组织移动
{
"method": "org.move",
"id": 1,
"info": {
"orgCode": "001001",
"orgs": [{
"orgCode": "001001",
"sort": "6"
}, {
"orgCode": "001002",
"sort": "7"
}]
}
}
组织批量新增
{
"method": "org.batch_add",
"id": 1,
"info": {
"orgs": [{
"orgName": "组织1",
"orgCode": "001001",
"parentCode": "001",
"sort": 10,
"orgType": "01",
"orgSn": "15345w633432334646",
"province": "2280",
"city": "2281",
"county": "2283"
}]
}
}
角色实时消息
参数
字段 | 必选 | 说明 | 类型 | 备注 |
id | Y | 角色ID | int | |
roleName | Y | 角色名称 | string | |
roleGrade | Y | 角色等级 | int | |
ownerCode | Y | 所属组织编码 | string | |
memo | N | 角色描述 | string | |
defaultRole | Y | 是否是默认角色 | int | 0 否 1 是 |
roleOrgs | N | 角色组织权限 | array | |
+orgCode | Y | 组织编码 | string | 有权限的组织编码,该组织权限其下级所有组织有权限 |
roleDepartments | N | 角色部门权限 | array | |
+departmentId | Y | 部门ID | int | 有权限的部门ID,该部门权限其下级所有部门有权限 |
消息协议
角色新增
{
"method": "role.add",
"info": {
"id": 2,
"roleName": "test",
"roleGrade": 2,
"ownerCode": "001",
"memo": "备注",
"roleOrgs": [{
"roleId": 2,
"orgCode": "001"
},
{
"roleId": 2,
"orgCode": "001"
}
],
"roleDepartments": [{
"roleId": 2,
"departmentId": 2
}]
}
}
角色更新
{
"method": "role.update",
"info": {
"id": 2,
"roleName": "test",
"roleGrade": 2,
"ownerCode": "001",
"memo": "备注",
"roleOrgs": [{
"roleId": 2,
"orgCode": "001"
},
{
"roleId": 2,
"orgCode": "001"
}
],
"roleDepartments": [{
"roleId": 2,
"departmentId": 2
}]
}
}
角色删除
{
"method": "org.delete",
"id": 1,
"info": {
"id": 1
}
}
用户实时消息
参数
字段 | 必选 | 说明 | 类型 | 备注 |
id | Y | 用户ID | long | |
loginName | Y | 登录用户名 | string | |
ownerCode | Y | 用户所属组织 | string | |
isReuse | Y | 复用标记 | int | 0-不复用 ,1-复用 |
personId | Y | 用户关联人员ID | long | |
isOnline | N | 用户在线状态 | int | 0 离线 1 在线 |
roleIds | N | 用户关联角色ID | array | |
消息协议
用户新增
{
"method": "user.add",
"id": 1,
"info": {
"id": 2,
"loginName": "test",
"ownerCode": "001",
"isReuse": 1,
"isOnline": 0,
"personId": 1,
"roleIdList": [1, 2]
}
} {
"method": "org.delete",
"id": 1,
"info": {
"id": 1
}
}
用户更新
{
"method": "user.update",
"id": 1,
"info": {
"id": 2,
"loginName": "test",
"ownerCode": "001001",
"isReuse": 1,
"isOnline": 1,
"personId": 1,
"roleIdList": [1, 2]
}
}
用户删除
{
"method": "user.delete",
"id": 1,
"info": {
"id": 2,
"loginName": "test"
}
}
设备实时消息
参数
字段 | 必选 | 说明 | 类型 | 备注 |
deviceName | Y | 设备名称 | string | |
deviceCode | Y | 设备编码 | string | |
deviceSn | N | 设备唯一标识码 | string | |
deviceCategory | Y | 设备分类 | int | |
deviceType | Y | 设备类型 | int | |
deviceManufacturer | Y | 设备厂商 | string | |
deviceModel | N | 设备型号 | string | |
deviceIp | N | 设备IP | string | |
devicePort | N | 设备端口 | int | |
ownerCode | Y | 设备所属组织 | string | |
loginType | Y | 登录类型 | string | |
loginName | Y | 登录名称 | string | |
loginPassword | Y | 登录密码 | string | |
registServerCode | N | 代理服务器编码 | string | |
registServiceId | N | 主动注册服务ID | string | |
registProxyPort | N | 主动注册代理端口 | string | |
registDeviceCode | N | 主动注册设备编码 | string | |
memo | N | 设备描述 | string | |
isOnline | Y | 在线状态 0 离线 1 在线 | string | |
mapId | N | 光栅图 | long | |
gpsX | N | 经度 | string | |
gpsY | N | 纬度 | string | |
subSystem | N | 设备所属子系统 | string | |
devExt | N | 设备扩展属性 | object | 自定义json格式数据 |
units | N | 单元信息 | array | object信息见下表 |
+unitType | Y | 单元类型 | int | |
+unitSeq | Y | 单元序号 | int | |
+sort | 否 | 排序码 | int | |
+memo | N | 单元描述信息 | string | |
+capability | N | 单元能力集 | string | |
+unitExt | N | 单元扩展信息 | object | 自定义json格式数据 |
+channels | N | 通道列表 | array | object信息见下表 |
++channelName | Y | 通道名称 | string | |
++channelSeq | Y | 通道序号 | int | |
++channelSn | N | 通道唯一标识码 | string | |
++channelCode | Y | 通道编码 | string | 通道编码格式:[deviceCode]$[unitType]$[unitSeq]$[channelSeq] |
++channelType | N | 通道类型 | string | |
++cameraType | N | 摄像头类型 | string | |
++capability | N | 通道能力集 | string | |
++ownerCode | Y | 通道所属组织编码 | string | |
++access | Y | 是否已被其他服务接入 | 0:未接入 ,1-已接入 | |
++isOnline | Y | 通道状态 | 0-离线, 1-在线 | |
++gpsX | N | 经度 | string | |
++gpsY | N | 纬度 | string | |
++gpsZ | N | Z轴 | string | |
++memo | N | 通道描述 | string | |
++stat | Y | 通道状态 :0-不启用, 1-启用 | int | |
++chExt | N | 通道扩展属性 | object | 自定义json格式数据 |
消息协议
设备新增
{
"method":"device.add",
"id":1,
"info":{
"deviceName": "编码器1232345",//设备名称
"deviceCode": "100006",//设备编码
"deviceSn": "deviceSn12432323345",//设备唯一标识码
"deviceCategory": 1,//设备分类(设备大类)
"deviceType": "1",//设备类型(设备小类)
"deviceManufacturer": "1",//设备厂商
"deviceModel": "1",//设备型号
"otherType":["1_1","3_1"]//设备在其他子系统中所属设备大小类定义
"deviceIp": "10.3.3.7",//设备ip
"devicePort": "37777",//设备端口
"ownerCode": "001",//设备所属组织
"loginType": "1",//登录类型
"loginName": "admin",//登录用户名
"loginPassword": "admin12334",//登录密码
"registServerCode":"video#local",//主动注册服务器编码
"registServiceId":"1",//主动注册服务ID
"registProxyPort":"38000",//主动注册代理端口
"registDeviceCode":"1000056",//主动注册设备编码
"memo": "设备添加memo",//描述
"isOnline": 0,//在线状态 0 离线 1 在线
"mapId":123,//光栅图
"gpsX": "12.3555",//经度
"gpsY": "15.5555",//纬度
"domainId": 1,//域ID
"subSystem": "ipms",//设备所属子系统
"devExt":{}, //设备扩展属性,自定义json数据
"units":[//单元
{
"unitType": 1,//单元类型
"unitSeq":0,//单元序号
"sort": 0,//排序码
"memo": "单元描述",
"capability": "111111111111111111",//能力集
"unitExt":{}, //单元扩展属性,自定义json
"channels": [
{
"channelName": "channelName1",//通道名称
"channelSeq": 0,//通道序号
"channelSn": "sn123456",//通道标识码
"channelCode":"100001$1$0$0",//通道编码
"channelType": "1",//通道类型
"cameraType": "1",//摄像头类型 1 枪机 2 球机 3 半球 5 本地采集输入
"capability": "1111111111111111111",//通道能力集
"ownerCode": "001",//通道所属组织
"isOnline":1,//通道状态
"gpsX": "15.3",//经度
"gpsY": "19.3",//纬度
"gpsZ": "150.3",//Z轴
"access": 0,//是否已被其他服务接入
"memo": "channelMemo",//通道描述
"stat": 1,//状态 0 不启用 1 启用
"chExt":{}//通道扩展属性,自定义
}
]
}
]
}
}
设备更新
{
"method":"device.update",
"id":1,
"info":{
"deviceName": "编码器1232345",//设备名称
"deviceCode": "100006",//设备编码
"deviceSn": "deviceSn12432323345",//设备唯一标识码
"deviceCategory": 1,//设备分类(设备大类)
"deviceType": "1",//设备类型(设备小类)
"deviceManufacturer": "1",//设备厂商
"deviceModel": "1",//设备型号
"otherType":["1_1","3_1"]//设备在其他子系统中所属设备大小类定义
"deviceIp": "10.3.3.7",//设备ip
"devicePort": "37777",//设备端口
"ownerCode": "001",//设备所属组织
"oldOwnerCode": "001001",//设备原所属组织
"loginType": "1",//登录类型
"loginName": "admin",//登录用户名
"loginPassword": "admin12334",//登录密码
"registServerCode":"video#local",//主动注册服务器编码
"registServiceId":"1",//主动注册服务ID
"registProxyPort":"38000",//主动注册代理端口
"registDeviceCode":"1000056",//主动注册设备编码
"memo": "设备添加memo",//描述
"isOnline": 0,//在线状态 0 离线 1 在线
"mapId":123,//光栅图
"gpsX": "12.3555",//经度
"gpsY": "15.5555",//纬度
"domainId": 1,//域ID
"subSystem": "ipms",//设备所属子系统
"devExt":{}, //设备扩展属性,自定义json数据
"units":[//单元
{
"unitType": 1,//单元类型
"unitSeq":0,//单元序号
"sort": 0,//排序码
"memo": "单元描述",
"capability": "111111111111111111",//能力集
"unitExt":{}, //单元扩展属性,自定义json
"channels": [
{
"channelName": "channelName1",//通道名称
"channelSeq": 0,//通道序号
"channelSn": "sn123456",//通道标识码
"channelCode":"100001$1$0$0",//通道编码
"channelType": "1",//通道类型
"cameraType": "1",//摄像头类型 1 枪机 2 球机 3 半球 5 本地采集输入
"capability": "1111111111111111111",//通道能力集
"ownerCode": "001",//通道所属组织
"isOnline":1,//通道状态
"gpsX": "15.3",//经度
"gpsY": "19.3",//纬度
"gpsZ": "150.3",//Z轴
"access": 0,//是否已被其他服务接入
"memo": "channelMemo",//通道描述
"stat": 1,//状态 0 不启用 1 启用
"chExt":{}//通道扩展属性,自定义
}
]
}
]
}
}
设备删除
{
"method":"device.delete",
"id":1,
"info":{
"deviceCode":"1000004",
"orgCode":"001001"
}
}
设备批量添加
{
"method":"device.batch_add",
"id":1,
"info":{
"deviceList":[
{
"deviceName": "编码器1232345",//设备名称
"deviceCode": "100006",//设备编码
"deviceSn": "deviceSn12432323345",//设备唯一标识码
"deviceCategory": 1,//设备分类(设备大类)
"deviceType": "1",//设备类型(设备小类)
"deviceManufacturer": "1",//设备厂商
"deviceModel": "1",//设备型号
"otherType":["1_1","3_1"]//设备在其他子系统中所属设备大小类定义
"deviceIp": "10.3.3.7",//设备ip
"devicePort": "37777",//设备端口
"ownerCode": "001",//设备所属组织
"loginType": "1",//登录类型
"loginName": "admin",//登录用户名
"loginPassword": "admin12334",//登录密码
"registServerCode":"video#local",//主动注册服务器编码
"registServiceId":"1",//主动注册服务ID
"registProxyPort":"38000",//主动注册代理端口
"registDeviceCode":"1000056",//主动注册设备编码
"memo": "设备添加memo",//描述
"isOnline": 0,//在线状态 0 离线 1 在线
"mapId":123,//光栅图
"gpsX": "12.3555",//经度
"gpsY": "15.5555",//纬度
"domainId": 1,//域ID
"subSystem": "ipms",//设备所属子系统
"devExt":{}, //设备扩展属性,自定义json数据
"units":[//单元
{
"unitType": 1,//单元类型
"unitSeq":0,//单元序号
"sort": 0,//排序码
"memo": "单元描述",
"capability": "111111111111111111",//能力集
"unitExt":{}, //单元扩展属性,自定义json
"channels": [
{
"channelName": "channelName1",//通道名称
"channelSeq": 0,//通道序号
"channelSn": "sn123456",//通道标识码
"channelCode":"100001$1$0$0",//通道编码
"channelType": "1",//通道类型
"cameraType": "1",//摄像头类型 1 枪机 2 球机 3 半球 5 本地采集输入
"capability": "1111111111111111111",//通道能力集
"ownerCode": "001",//通道所属组织
"isOnline":1,//通道状态
"gpsX": "15.3",//经度
"gpsY": "19.3",//纬度
"gpsZ": "150.3",//Z轴
"access": 0,//是否已被其他服务接入
"memo": "channelMemo",//通道描述
"stat": 1,//状态 0 不启用 1 启用
"chExt":{}//通道扩展属性,自定义
}
]
}
]
}
]
}
设备批量更新
{
"method":"device.batch_update",
"id":1,
"info":{
"deviceList":[
{
"deviceName": "编码器1232345",//设备名称
"deviceCode": "100006",//设备编码
"deviceSn": "deviceSn12432323345",//设备唯一标识码
"deviceCategory": 1,//设备分类(设备大类)
"deviceType": "1",//设备类型(设备小类)
"deviceManufacturer": "1",//设备厂商
"deviceModel": "1",//设备型号
"otherType":["1_1","3_1"]//设备在其他子系统中所属设备大小类定义
"deviceIp": "10.3.3.7",//设备ip
"devicePort": "37777",//设备端口
"ownerCode": "001",//设备所属组织
"oldOwnerCode": "001001",//设备原所属组织
"loginType": "1",//登录类型
"loginName": "admin",//登录用户名
"loginPassword": "admin12334",//登录密码
"registServerCode":"video#local",//主动注册服务器编码
"registServiceId":"1",//主动注册服务ID
"registProxyPort":"38000",//主动注册代理端口
"registDeviceCode":"1000056",//主动注册设备编码
"memo": "设备添加memo",//描述
"isOnline": 0,//在线状态 0 离线 1 在线
"mapId":123,//光栅图
"gpsX": "12.3555",//经度
"gpsY": "15.5555",//纬度
"domainId": 1,//域ID
"subSystem": "ipms",//设备所属子系统
"devExt":{}, //设备扩展属性,自定义json数据
"units":[//单元
{
"unitType": 1,//单元类型
"unitSeq":0,//单元序号
"sort": 0,//排序码
"memo": "单元描述",
"capability": "111111111111111111",//能力集
"unitExt":{}, //单元扩展属性,自定义json
"channels": [
{
"channelName": "channelName1",//通道名称
"channelSeq": 0,//通道序号
"channelSn": "sn123456",//通道标识码
"channelCode":"100001$1$0$0",//通道编码
"channelType": "1",//通道类型
"cameraType": "1",//摄像头类型 1 枪机 2 球机 3 半球 5 本地采集输入
"capability": "1111111111111111111",//通道能力集
"ownerCode": "001",//通道所属组织
"isOnline":1,//通道状态
"gpsX": "15.3",//经度
"gpsY": "19.3",//纬度
"gpsZ": "150.3",//Z轴
"access": 0,//是否已被其他服务接入
"memo": "channelMemo",//通道描述
"stat": 1,//状态 0 不启用 1 启用
"chExt":{}//通道扩展属性,自定义
}
]
}
]
}
]
}
部门实时消息
参数
字段 | 必选 | 说明 | 类型 | 备注 |
id | Y | 部门ID | long | |
parentId | Y | 父部门ID | long | |
name | Y | 部门名称 | string | |
memo | N | 备注 | string | |
sort | Y | 同级部门排序 | int | |
parentIds | Y | 部门所有上级包括本级部门Id,以逗号分隔 | string | |
ids | N | 部门ID列表 | array | 组织删除操作时部门id列表 |
departList | N | 部门信息列表 | array | 批量添加/更新操作时部门列表 |
消息协议
部门新增
{
"method":"department.add",
"info":{
"id":1004,
"name":"部门A",
"parentId":"1",
"sort":10,
"parentIds":"1,1004,"
}
}
部门更新
{
"method": "department.update",
"id": 1,
"info": {
"id": 1004,
"name": "部门A",
"parentId": "1",
"sort": 10,
"parentIds": "1,1004,"
}
}
部门删除
{
"method": "department.delete",
"id": 1,
"info": {
"ids": [1004, 1005]
}
}
部门批量新增
{
"method":"department.batch_add",
"info":{
"departList":[
{
"id":1004,
"name":"部门A",
"parentId":"1",
"sort":10,
"parentIds":"1,1004,"
},
{
"id":1005,
"name":"部门B",
"parentId":"1",
"sort":"13",
"parentIds":"1,1005,"
}
]
}
}
部门批量更新
{
"method": "department.batch_update",
"info": {
"departList": [{
"id": 1004,
"name": "部门A",
"parentId": "1",
"sort": 10,
"parentIds": "1,1004,"
},
{
"id": 1005,
"name": "部门B",
"parentId": "1",
"sort": 13,
"parentIds": "1,1005,"
}
]
}
}
人员实时消息
参数
字段 | 必选 | 说明 | 类型 | 备注 |
id | Y | 人员ID | long | |
code | Y | 人员编码 | string | |
name | Y | 人员姓名 | string | |
sex | Y | 性别 1-男,2-女 | int | |
birthday | N | 出生日期 | date | |
age | Y | 年龄 | int | |
paperType | Y | 证件类型 | int | |
paperNumber | Y | 证件号码 | string | |
paperAddress | N | 证件地址 | string | |
country | N | 国家 | int | |
nation | N | 民族 | int | |
nativePlace | N | 籍贯 | string | | |
education | N | 教育程度 | string | |
politicalStatus | N | 政治面貌 | string | |
company | N | 单位 | string | |
phone | N | 电话 | string | |
email | N | 邮件 | string | |
address | N | 地址 | string | |
departmentId | Y | 所属部门id | long | |
memo | N | 备注 | string | |
password | Y | 密码 | string | |
status | Y | 0-删除,1-正常,2-冻结 | int | |
biosignatureTypeList | N | 生物特征类型列表:1-普通指纹, 2-胁迫指纹,3-人脸图片, 4-9241d人脸, 5-红外人脸 | list |
personBiosignatures | N | 生物特征数据:人脸头像、人脸特征、指纹特征 | list | |
+type | Y | 生物特征类型:1-普通指纹, 2-胁迫指纹,3-人脸图片, 4-9241d人脸, 5-红外人脸 | int | |
+path | N | 生物特征存储路径,若人脸,为图片相对地址,完整地址访问参考图片拼接规则 | int | |
+index | Y | 同种生物特征数据索引,人脸头像:index=1 主头像 | int | |
+data | N | 生物特征数据 | string | |
批量 |
personList | N | array | person对象队列,用于批量新增、更新 | |
消息协议
人员新增
说明:人员更新消息包括人员的基本信息,没有人员的生物特征信息(普通人脸除外,基本信息中的fathPath是人脸信息)。 发送消息场景:1.管理端新增人员 2.管理端导入人员基本信息 3.管理端导入人员全部信息 4.子系统通过client接口新增人员
{
"method":"person.add",
"id":1,
"info":{
"id":2,
"code":"552588",
"selfCode":"8588454",
"name":"人员1",
"sex":1,
"birthday":"1994-11-25",
"age":24,
"paperType":111,
"paperNumber":342623199411253690,
"paperAddress":"安徽省合肥市",
"nation":1,
"nationName":"汉族",
"nativePlace":"安徽省合肥市",
"education":"本科",
"politicalStatus":"群众",
"company":"美的",
"phone":15168542369,
"email":"mayun@jingdong.com",
"address":"",
"departmentId":1,
"memo":"sdafsdal",
"password":"adsdahdkal",
"status":1,
"personBiosignatures":[{
"type": 3,
"index":1,
"path":"27e1135c-c3e8-11e9-b59e-00e0ed75d004/20190823/1/c8e61bbe-c56a-11e9-81cb-00e0ed75d004.png"
},{
"type": 2,
"index":1,
"path":"27e1135c-c3e8-11e9-b59e-00e0ed75d004/20190823/1/c8e61bbe-c56a-11e9-81cb-00e0ed75d004.png"
}
]
}
}
人员更新
说明:相关信息同上 发送消息场景:1.管理端编辑更新人员 2.子系统通过client更新人员信息
{
"method": "person.update",
"id": 1,
"info": {
"id": 2,
"code": "552588",
"selfCode": "8588454",
"name": "人员1",
"sex": 1,
"birthday": "1994-11-25",
"age": 24,
"paperType": 111,
"paperNumber": 342623199411253690,
"paperAddress": "安徽省合肥市",
"nation": 1,
"nationName": "汉族",
"nativePlace": "安徽省合肥市",
"education": "本科",
"politicalStatus": "群众",
"company": "美的",
"phone": 15168542369,
"email": "mayun@jingdong.com",
"address": "",
"departmentId": 1,
"memo": "所有人",
"password": "adsdahdkal",
"status": 1,
"personBiosignatures": [{
"type": 3,
"index": 1,
"path": "27e1135c-c3e8-11e9-b59e-00e0ed75d004/20190823/1/c8e61bbe-c56a-11e9-81cb-00e0ed75d004.png"
}, {
"type": 2,
"index": 1,
"path": "27e1135c-c3e8-11e9-b59e-00e0ed75d004/20190823/1/c8e61bbe-c56a-11e9-81cb-00e0ed75d004.png"
}]
}
}
人员删除
说明:该消息说明有人员被删除 收到该消息需要根据id删除人员 发送消息场景:1.管理端的逻辑删除 2.子系统通过client接口删除人员
{
"method":"person.delete",
"id":1,
"info":{
"id":2
}
}
人员部门转移通知
说明:收到该消息需要变更人员的所属部门 发送消息场景:1.管理端批量转移人员部门 参数:
字段 | 必选 | 说明 | 类型 | 备注 |
id | Y | 要转移人员的id | long | |
departmentId | Y | 要转移到的部门的id | long | |
{
"method":"person.department_update",
"id":1,
"info":{
"id":1005,
"departmentId":1
}
}
人员批量新增
说明:收到该消息需要批量新增人员 发送消息场景:1.管理端批量导入人员
{
"method": "person.batch_add",
"id": 1,
"info": {
"personList": [
{
"age": 25,
"birthday":"1994-11-25",
"code": "20001",
"country": "CHN",
"departmentId": 1,
"id": 8,
"name": "20001",
"nation": 1,
"ownerCode": "001",
"paperAddress": "北京市",
"paperNumber": "20001",
"paperType": 114,
"password": "DBC60D130CD73498E4B80849EB5C38F8947F96C733C2CA1CECC3921EBB6D4C26",
"personBiosignatures": [
{
"data": "kjsdaghfjkfksdahfkshadfkdshfksjlalksajdfksljfh8u9wer9w8",
"id": 3,
"index": 1,
"personId": 8,
"status": 1,
"type": 5
}
],
"sex": 1,
"status": 1
},
{
"age": 25,
"birthday":"1994-11-25",
"code": "20002",
"country": "CHN",
"departmentId": 1,
"id": 9,
"name": "20002",
"nation": 1,
"ownerCode": "001",
"paperAddress": "北京市",
"paperNumber": "20002",
"paperType": 114,
"password": "E2857166AAEF4DB9A28F208B19BF1144041113A23ADF722EEF56030455AD3633",
"personBiosignatures": [
{
"data": "kjsdaghfjkfksdahfkshadfkdshfksjlalksajdfksljfh8u9wer9w9",
"id": 4,
"index": 1,
"personId": 9,
"status": 1,
"type": 5
}
],
"sex": 1,
"status": 1
}
]
}
}
人员批量更新
说明:收到该消息需要批量更新人员 发送消息场景:1.管理端批量导入人员照片
{
"method": "person.batch_update",
"id": 1,
"info": {
"personList": [
{
"age": 25,
"birthday": "1994-11-25",
"code": "20001",
"country": "CHN",
"departmentId": 1,
"id": 8,
"name": "20001",
"nation": 1,
"ownerCode": "001",
"paperAddress": "北京市",
"paperNumber": "20001",
"paperType": 114,
"password": "DBC60D130CD73498E4B80849EB5C38F8947F96C733C2CA1CECC3921EBB6D4C26",
"personBiosignatures": [
{
"type": 3,
"index": 1,
"path": "27e1135c-c3e8-11e9-b59e-00e0ed75d004/20190823/1/c8e61bbe-c56a-11e9-81cb-00e0ed75d004.png"
},
{
"type": 2,
"index": 1,
"path": "27e1135c-c3e8-11e9-b59e-00e0ed75d004/20190823/1/c8e61bbe-c56a-11e9-81cb-00e0ed75d004.png"
}
],
"sex": 1,
"status": 1
}
]
}
}
卡片实时消息
参数
字段 | 必选 | 类型 | 说明 | 备注 |
id | Y | long | 卡id | |
cardNumber | Y | string | 卡号 | |
cardPassword | Y | string | 卡密码 | |
personId | N | long | 人员ID | |
departmentId | N | long | 部门ID | |
startDate | N | date | 开始时间 | |
endDate | N | date | 结束时间 | |
cardStatus | N | string | 卡状态 BLANK:空白 ACTIVE:激活 FROZEN:冻结 WITHDRAWN:注销 | |
availableTimes | N | string | 使用次数 | |
description | N | string | 备注 | |
validFlag | N | string | 有效标志位 | |
category | N | string | 区分是IC卡还是RFID卡 | |
isMainCard | Y | int | 区分是否是主卡 1为主卡 | |
isVirtual | N | int | 区分是否是虚拟卡 1为虚拟卡 | |
oldCardNumber | N | string | 旧卡号 - 换卡时推送子系统使用 子系统自行注销该卡号 | |
cardOperation | N | string | 在card.update方法中使用的二级分类,供子系统按业务处理数据。active,lose,relieve,return分别对应激活、挂失、解挂、退卡 | |
cardList | N | array | 批量方法(batch_add) 中放入多个card对象 | |
消息协议
卡片新增
{
"method":"card.add",
"info":{
"id":11,
"cardNumber":"324623423",
"cardType":"0",
"cardPassword":"dahua2006",
"personId":3,
"startDate":"2019-02-23 00:00:00",
"endDate":"2029-02-23 00:00:00",
"cardStatus":"1",
"availableTimes":"2",
"description":"客户很有钱",
"validFlag":"ENABLE",
"category":"1",
"isMainCard":1,
"isVirtual":1
}
}
卡片更新
{
"method":"card.update",
"info":{
"id":11,
"cardNumber":"324623423",
"cardType":"0",
"cardPassword":"dahua2006",
"personId":3,
"startDate":"2019-02-23 00:00:00",
"endDate":"2019-02-23 00:00:00",
"cardStatus":"1",
"availableTimes":"2",
"description":"客户很有钱",
"validFlag":"ENABLE",
"category":"1",
"isMainCard":1,
"isVirtual":1
}
}
卡片删除
{
"method":"card.delete",
"id":1,
"info":{
"cardNumber":"4554665423"
}
}
补卡/换卡
{
"method":"card.replace",
"info":{
"id":11,
"cardNumber":"324623423",
"cardType":"0",
"cardPassword":"dahua2006",
"personId":3,
"startDate":"2019-02-23 00:00:00",
"endDate":"2019-02-23 00:00:00",
"cardStatus":"1",
"availableTimes":"2",
"description":"客户很有钱",
"validFlag":"ENABLE",
"category":"1",
"isMainCard":1,
"isVirtual":1,
"oldCardNumber":"DDDDDDDDD"
}
}
卡片批量同步
{
"method": "card.batch_add",
"info": {
"cardList": [{
"cardNumber": "AAAB1032",
"cardPassword": "F3CEA7B85AE0D5DE2A78C0495926C5FCF32206F2C5FEE1139A6A30C27C41E528",
"cardStatus": "255",
"cardType": "0",
"category": "0",
"departmentId": 1,
"startDate": "2019-02-23 00:00:00",
"endDate": "2019-02-23 00:00:00",
"id": 10066,
"isMainCard": 0,
"personId": 0,
"validFlag": "ENABLE"
},
{
"cardNumber": "AAAB1033",
"cardPassword": "5B2615121DF16399850FDCE8FBFF5A90B42213A0E63B13DC2A9B28D3E6BB8AAC",
"cardStatus": "255",
"cardType": "0",
"category": "0",
"departmentId": 1,
"startDate": "2019-02-23 00:00:00",
"endDate": "2019-02-23 00:00:00",
"id": 10067,
"isMainCard": 0,
"personId": 0,
"validFlag": "ENABLE"
}
]
}
}
卡片批量更新
{
"method": "card.batch_update",
"info": {
"cardList": [{
"cardNumber": "AAAB1032",
"cardPassword": "F3CEA7B85AE0D5DE2A78C0495926C5FCF32206F2C5FEE1139A6A30C27C41E528",
"cardStatus": "255",
"cardType": "0",
"category": "0",
"departmentId": 1,
"startDate": "2019-02-23 00:00:00",
"endDate": "2019-02-23 00:00:00",
"id": 10066,
"isMainCard": 0,
"personId": 0,
"validFlag": "ENABLE"
},
{
"cardNumber": "AAAB1033",
"cardPassword": "5B2615121DF16399850FDCE8FBFF5A90B42213A0E63B13DC2A9B28D3E6BB8AAC",
"cardStatus": "255",
"cardType": "0",
"category": "0",
"departmentId": 1,
"startDate": "2019-02-23 00:00:00",
"endDate": "2019-02-23 00:00:00",
"id": 10067,
"isMainCard": 0,
"personId": 0,
"validFlag": "ENABLE"
}
]
}
}
车辆实时消息
参数
字段 | 必选 | 类型 | 说明 | 备注 |
id | 是 | long | 自增id | |
carCode | 是 | string | 车辆编号 | |
carNum | 是 | string | 车牌号码 | |
carNumColor | 是 | string | 车牌颜色: 0-蓝色,1:黄色,2-白色,3-黑色,4-绿色,99-未识别,100-其他 | |
carType | 是 | string | 车辆类型 :0-未识别,1-小型汽车,2-大型汽车,3-使馆汽车,4-领馆汽车,5-境外汽车,6-外籍汽车,7-教练车,8-临时行驶车,9-警用汽车, | |
carBrand | 是 | string | 车辆品牌 :0-未识别,1-奥迪,2-本田,3-别克,4-大众,5-丰田,6-宝马,7-标致,8-福特,9-马自达,10-尼桑,11-现代,12-铃木,13-雪铁龙,14-奔驰,15-比亚迪,16-吉利,17-雷克萨斯,18-雪佛兰,19-奇瑞,20-起亚,21-夏利,22-东风,23-依维柯,24-五菱,25-金杯,26-保时捷,27-法拉利,28-兰博基尼,-1-其他 | |
carColor | 是 | string | 车身颜色 :0-白,1-黑,2-红,3-黄,4-银灰,5-蓝,6-绿,7-橙,8-紫,9-青,10-粉,11-棕,99-未识别,100-其他 | |
ownerId | 否 | long | 车主id | |
departmentId | 否 | long | 部门id | |
createTime | 否 | date | 创建时间 | |
createUser | 否 | long | 创建人id | |
updateTime | 否 | date | 更新时间 | |
updateUser | 否 | long | 更新人id | |
deleteAuth | 否 | int | 子系统使用 对卡片删除限制 1为增加限制 2为删除限制 | |
updateAuth | 否 | int | 子系统使用 对卡片修改限制 1为增加限制 2为删除限制 | |
listType | 否 | int | 黑白名单:0-正常,1-白名单,2-黑名单 | |
parkType | 否 | int | 临时或者长期 | |
memo | 否 | string | 备注 | |
carStatus | 否 | string | 使用状态 | |
carPic | 否 | string | 汽车照片 | |
carList | 否 | string | 批量新增车辆列表 | |
fieldExt | 否 | Array | 自定义字段信息 | |
+businessType | 是 | string | 业务类型 | |
+useFieldNames | 否 | object | 自定义字段信息 | key:value格式的数据 |
消息协议
车辆新增
{
"method": "car.add",
"id": 0,
"info": {
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded",
"carNum": "...C111",
"carNumColor": "0",
"carType": "1",
"carBrand": "1",
"carColor": "1",
"carMark": null,
"carStatus": null,
"carPic": null,
"ownerId": 4,
"ownerCode": null,
"departmentId": 10012,
"memo": null,
"parkType": null,
"listType": null,
"fieldExt":{
"businessType":"4",
"useFieldNames":{
"key1":"value1",
"key2":"value2"
}
}
}
}
车辆更新
{
"method": "car.update",
"id": 0,
"info": {
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded",
"carNum": "...C111",
"carNumColor": "1",
"carType": "1",
"carBrand": "1",
"carColor": "1",
"carMark": null,
"carStatus": null,
"carPic": null,
"ownerId": 4,
"ownerCode": null,
"departmentId": 10012,
"memo": null,
"parkType": null,
"listType": null,
"fieldExt":{
"businessType":"4",
"useFieldNames":{
"key1":"value1",
"key2":"value2"
}
}
}
}
车辆删除
{
"method": "car.delete",
"id": 0,
"info": {
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded"
}
}
车辆批量新增
{
"method": "car.batch_add",
"info": {
"carList": [{
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded",
"carNum": "...C111",
"carNumColor": "0",
"carType": "1",
"carBrand": "1",
"carColor": "1",
"carMark": null,
"carStatus": null,
"carPic": null,
"ownerId": 4,
"ownerCode": null,
"departmentId": 10012,
"memo": null,
"parkType": null,
"listType": null,
"fieldExt": {
"businessType": "4",
"useFieldNames": {
"key1": "value1",
"key2": "value2"
}
}
},
{
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded",
"carNum": "...C111",
"carNumColor": "0",
"carType": "1",
"carBrand": "1",
"carColor": "1",
"carMark": null,
"carStatus": null,
"carPic": null,
"ownerId": 4,
"ownerCode": null,
"departmentId": 10012,
"memo": null,
"parkType": null,
"listType": null,
"fieldExt": {
"businessType": "4",
"useFieldNames": {
"key1": "value1",
"key2": "value2"
}
}
}
]
}
}
车辆批量修改
{
"method": "car.batch_update",
"info": {
"carList": [{
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded",
"carNum": "...C111",
"carNumColor": "0",
"carType": "1",
"carBrand": "1",
"carColor": "1",
"carMark": null,
"carStatus": null,
"carPic": null,
"ownerId": 4,
"ownerCode": null,
"departmentId": 10012,
"memo": null,
"parkType": null,
"listType": null,
"fieldExt": {
"businessType": "4",
"useFieldNames": {
"key1": "value1",
"key2": "value2"
}
}
},
{
"carCode": "1edae411-7394-4a16-b1d0-bec0d5d29ded",
"carNum": "...C111",
"carNumColor": "0",
"carType": "1",
"carBrand": "1",
"carColor": "1",
"carMark": null,
"carStatus": null,
"carPic": null,
"ownerId": 4,
"ownerCode": null,
"departmentId": 10012,
"memo": null,
"parkType": null,
"listType": null,
"fieldExt": {
"businessType": "4",
"useFieldNames": {
"key1": "value1",
"key2": "value2"
}
}
}
]
}
}