组织实时消息

参数说明

字段必选说明类型备注
orgNameY组织名称string
orgCodeY组织编码string
parentCodeY上级组织编码string
sortY组织同级排序int
orgTypeY组织类型string
orgSnN组织唯一标识码string
provinceNstring
cityNstring
countyNstring

消息协议

组织新增
{
	"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"
		}]
	}
}
  
角色实时消息

参数

字段必选说明类型备注
idY角色IDint
roleNameY角色名称string
roleGradeY角色等级int
ownerCodeY所属组织编码string
memoN角色描述string
defaultRoleY是否是默认角色int0 否 1 是
roleOrgsN角色组织权限array
+orgCodeY组织编码string有权限的组织编码,该组织权限其下级所有组织有权限
roleDepartmentsN角色部门权限array
+departmentIdY部门IDint有权限的部门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
	}
}
用户实时消息

参数

字段必选说明类型备注
idY用户IDlong
loginNameY登录用户名string
ownerCodeY用户所属组织string
isReuseY复用标记int0-不复用 ,1-复用
personIdY用户关联人员IDlong
isOnlineN用户在线状态int0 离线 1 在线
roleIdsN用户关联角色IDarray

消息协议

用户新增
{
	"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"
	}
}
设备实时消息

参数

字段必选说明类型备注
deviceNameY设备名称string
deviceCodeY设备编码string
deviceSnN设备唯一标识码string
deviceCategoryY设备分类int
deviceTypeY设备类型int
deviceManufacturerY设备厂商string
deviceModelN设备型号string
deviceIpN设备IPstring
devicePortN设备端口int
ownerCodeY设备所属组织string
loginTypeY登录类型string
loginNameY登录名称string
loginPasswordY登录密码string
registServerCodeN代理服务器编码string
registServiceIdN主动注册服务IDstring
registProxyPortN主动注册代理端口string
registDeviceCodeN主动注册设备编码string
memoN设备描述string
isOnlineY在线状态 0 离线 1 在线string
mapIdN光栅图long
gpsXN经度string
gpsYN纬度string
subSystemN设备所属子系统string
devExtN设备扩展属性object自定义json格式数据
unitsN单元信息arrayobject信息见下表
+unitTypeY单元类型int
+unitSeqY单元序号int
+sort排序码int
+memoN单元描述信息string
+capabilityN单元能力集string
+unitExtN单元扩展信息object自定义json格式数据
+channelsN通道列表arrayobject信息见下表
++channelNameY通道名称string
++channelSeqY通道序号int
++channelSnN通道唯一标识码string
++channelCodeY通道编码string通道编码格式:[deviceCode]$[unitType]$[unitSeq]$[channelSeq]
++channelTypeN通道类型string
++cameraTypeN摄像头类型string
++capabilityN通道能力集string
++ownerCodeY通道所属组织编码string
++accessY是否已被其他服务接入0:未接入 ,1-已接入
++isOnlineY通道状态0-离线, 1-在线
++gpsXN经度string
++gpsYN纬度string
++gpsZNZ轴string
++memoN通道描述string
++statY通道状态 :0-不启用, 1-启用int
++chExtN通道扩展属性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":{}//通道扩展属性,自定义
			  }
			]
		  }
		]
	  } 
	]
}
部门实时消息

参数

字段必选说明类型备注
idY部门IDlong
parentIdY父部门IDlong
nameY部门名称string
memoN备注string
sortY同级部门排序int
parentIdsY部门所有上级包括本级部门Id,以逗号分隔string
idsN部门ID列表array组织删除操作时部门id列表
departListN部门信息列表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,"
			}
		]
	}
}
  
人员实时消息

参数

字段必选说明类型备注
idY人员IDlong
codeY人员编码string
nameY人员姓名string
sexY性别 1-男,2-女int
birthdayN出生日期date
ageY年龄int
paperTypeY证件类型int
paperNumberY证件号码string
paperAddressN证件地址string
countryN国家int
nationN民族int
nativePlaceN籍贯string
educationN教育程度string
politicalStatusN政治面貌string
companyN单位string
phoneN电话string
emailN邮件string
addressN地址string
departmentIdY所属部门idlong
memoN备注string
passwordY密码string
statusY0-删除,1-正常,2-冻结int
biosignatureTypeListN生物特征类型列表:1-普通指纹, 2-胁迫指纹,3-人脸图片, 4-9241d人脸, 5-红外人脸list
personBiosignaturesN生物特征数据:人脸头像、人脸特征、指纹特征list
+typeY生物特征类型:1-普通指纹, 2-胁迫指纹,3-人脸图片, 4-9241d人脸, 5-红外人脸int
+pathN生物特征存储路径,若人脸,为图片相对地址,完整地址访问参考图片拼接规则int
+indexY同种生物特征数据索引,人脸头像:index=1 主头像int
+dataN生物特征数据string
批量
personListNarrayperson对象队列,用于批量新增、更新

消息协议

人员新增

说明:人员更新消息包括人员的基本信息,没有人员的生物特征信息(普通人脸除外,基本信息中的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.管理端批量转移人员部门 参数:

字段必选说明类型备注
idY要转移人员的idlong
departmentIdY要转移到的部门的idlong
{
	"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
     }
   ]
 }
} 

卡片实时消息

参数

字段必选类型说明备注
idYlong卡id
cardNumberYstring卡号
cardPasswordYstring卡密码
personIdNlong人员ID
departmentIdNlong部门ID
startDateNdate开始时间
endDateNdate结束时间
cardStatusNstring卡状态 BLANK:空白 ACTIVE:激活 FROZEN:冻结 WITHDRAWN:注销
availableTimesNstring使用次数
descriptionNstring备注
validFlagNstring有效标志位
categoryNstring区分是IC卡还是RFID卡
isMainCardYint区分是否是主卡 1为主卡
isVirtualNint区分是否是虚拟卡 1为虚拟卡
oldCardNumberNstring旧卡号 - 换卡时推送子系统使用 子系统自行注销该卡号
cardOperationNstring在card.update方法中使用的二级分类,供子系统按业务处理数据。active,lose,relieve,return分别对应激活、挂失、解挂、退卡
cardListNarray批量方法(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"
			}
		]
	}
}
车辆实时消息

参数

字段必选类型说明备注
idlong自增id
carCodestring车辆编号
carNumstring车牌号码
carNumColorstring车牌颜色: 0-蓝色,1:黄色,2-白色,3-黑色,4-绿色,99-未识别,100-其他
carTypestring车辆类型 :0-未识别,1-小型汽车,2-大型汽车,3-使馆汽车,4-领馆汽车,5-境外汽车,6-外籍汽车,7-教练车,8-临时行驶车,9-警用汽车,
carBrandstring车辆品牌 :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-其他
carColorstring车身颜色 :0-白,1-黑,2-红,3-黄,4-银灰,5-蓝,6-绿,7-橙,8-紫,9-青,10-粉,11-棕,99-未识别,100-其他
ownerIdlong车主id
departmentIdlong部门id
createTimedate创建时间
createUserlong创建人id
updateTimedate更新时间
updateUserlong更新人id
deleteAuthint子系统使用 对卡片删除限制 1为增加限制 2为删除限制
updateAuthint子系统使用 对卡片修改限制 1为增加限制 2为删除限制
listTypeint黑白名单:0-正常,1-白名单,2-黑名单
parkTypeint临时或者长期
memostring备注
carStatusstring使用状态
carPicstring汽车照片
carListstring批量新增车辆列表
fieldExtArray自定义字段信息
+businessTypestring业务类型
+useFieldNamesobject自定义字段信息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"
					}
				}
			}
		]
	}
}