1. ‌Login Authentication
WDF Open Api
  • ‌Interface Specification
  • 1.Login Authentication
    • Authorization Code Authentication (Recommended)
      • Authorization Code Authentication (Recommended)
      • ‌Authorization Code Heartbeat API (Recommended)
    • ‌Login Authentication
      • ‌Interface Encryption Usage Instructions
      • ‌Login API
        POST
      • ‌Verification Code API
        GET
    • ‌Logout API
      POST
  • ‌2.Real-time Perception
    • ‌WebSocket Get Location
    • ‌Device Message Downlink API
      POST
    • ‌Rapid Evacuation Notification API
      POST
    • ‌Device Statistics API
      GET
    • ‌Device Details API
      GET
  • 3.Alarm Management
    • WebSocket push alarm interface
    • Business alarm modification interface
      PUT
    • New interface for business alarms
      POST
    • Business alarm deletion interface
      DELETE
    • Service alarm start/stop setting interface
      POST
    • Business alarm details interface
      GET
    • Business alarm list interface
      GET
    • Hardware alarm modification interface
      PUT
    • New interface for hardware alarms
      POST
    • Hardware alarm deletion interface
      DELETE
    • Hardware alarm on/off setting interface
      POST
    • Hardware alarm details interface
      GET
    • Hardware alarm list interface
      GET
    • Alarm list interface
      GET
    • One-click alarm processing interface
      POST
    • Alarm processing interface
      POST
    • Alarm details interface
      GET
  • 4. Map information
    • Map modification interface
    • New map interface
    • Map details interface
    • Map deletion API
    • Map list interface
    • Map pagination list interface
    • Map details interface
    • Map tree list interface
    • Default map setting interface
    • Default map query interface
  • 5. Electronic fence
    • Add new interface to the fence
    • Fence modification interface
    • Fence deletion interface
    • Fence details interface
    • Fence list interface
    • Fence paging list interface
    • Fence GeoJson list interface
    • Fence GeoJson details interface
  • 6. Historical trajectory
    • Display historical trajectories of multiple people
    • Statistics of personnel stay duration
    • Statistics of regional stay duration
    • Obtain the final location
    • Historical location information query interface
    • Trajectory efficiency analysis query interface
    • Historical layer list query interface
    • Historical layer details query interface
  • 7. Visitor Information
    • Visitor modification interface
    • Add new visitor information
    • Visitor deletion interface
    • Visitor details interface
    • Visitor list interface
    • Visitor exit interface
    • Visitor registration modification interface
    • New interface for visitor registration
    • Visitor registration deletion interface
    • Visitor registration details interface
    • Visitor registration list interface
  • 8. Tag binding management
    • Vehicle modification interface
    • Newly added interfaces for vehicles
    • Vehicle deletion interface
    • Vehicle details interface
    • Vehicle list interface
    • Employee modification interface
    • Employee addition interface
    • Employee deletion interface
    • Employee details interface
    • Employee list interface
    • Interface for all staff list
    • Material modification interface
    • Material addition interface
    • Material deletion interface
    • Material details interface
    • Material list interface
  • 9. Smart Devices
    • Product list interface
    • Product paging list interface
    • Product details interface
    • Product attribute list interface
    • Product attribute paging list interface
    • Device list interface
    • Device details interface
  • 10. Anti-collision interface
    • Interface for collision avoidance alarm list
    • Detailed interface of collision avoidance alarm
  • 11. Paperless interface
    • New interface for template parameters
    • Template parameter modification interface
    • Template parameter deletion interface
    • Template parameter list interface
    • Template parameter details interface
    • Template new interface
    • Template modification interface
    • Template deletion interface
    • Template start-stop setting interface
    • Template list interface
    • Template details interface
    • Template message push interface
    • Template message list interface
    • Template image details API
  • Schemas
    • Example data model
      • Pet
      • Category
      • Tag
    • Schemas
      • TableDataInfoWzhTemplateVo
      • WzhTemplateMsgVo
      • TableDataInfoWzhTemplateMsgVo
      • WzhTemplateMsgItemVo
      • TableDataInfoWzhTemplateMsgItemVo
      • WzhTemplateMsgItemBo
      • WzhTemplateVo
      • RWzhTemplateVo
      • TableDataInfoWzhTemplateParamVo
      • WzhTemplateParamVo
      • RWzhTemplateParamVo
      • WzhTemplateMsgBo
      • WzhTemplateBo
      • WzhTemplateParamBo
      • TableDataInfoFzAlarmEventVo
      • RFzAlarmEventVo
      • FzAlarmEventVo
      • RMapObjectObject
      • RListMapObjectObject
      • FzAlarmEventBo
      • RCacheListInfoVo
      • CacheListInfoVo
      • TableDataInfoSysLogininforVo
      • SysLogininforVo
      • TableDataInfoSysUserOnline
      • SysUserOnline
      • TableDataInfoSysOperLogVo
      • SysOperLogVo
      • SysLogininforBo
      • SysOperLogBo
      • TableDataInfoSysOssConfigVo
      • SysOssConfigVo
      • RSysOssConfigVo
      • RListSysOssVo
      • TableDataInfoSysOssVo
      • SysOssVo
      • SysOssBo
      • TableDataInfoSysChannelConfigVo
      • SysChannelConfigVo
      • RSysChannelConfigVo
      • TableDataInfoSysChannelTemplateVo
      • SysChannelTemplateVo
      • RSysChannelTemplateVo
      • TableDataInfoSysChannelTypeVo
      • SysChannelTypeVo
      • RSysChannelTypeVo
      • TableDataInfoSysClientVo
      • SysClientVo
      • RSysClientVo
      • TableDataInfoSysConfigVo
      • SysConfigVo
      • RSysConfigVo
      • RListSysDeptVo
      • RSysDeptVo
      • TableDataInfoSysDeviceAttributeMsgVo
      • SysDeviceAttributeMsgVo
      • SysDeviceAttributeLogVo
      • SysDeviceAttributeLogBo
      • TableDataInfoSysDictDataVo
      • RListSysDictDataVo
      • SysDictDataVo
      • RSysDictDataVo
      • TableDataInfoSysDictTypeVo
      • RListSysDictTypeVo
      • SysDictTypeVo
      • RSysDictTypeVo
      • TableDataInfoSysJobTypeVo
      • SysJobTypeVo
      • RSysJobTypeVo
      • TableDataInfoLanguageCollectDo
      • LanguageCollectDo
      • SysLanguageCollectBo
      • TableDataInfoSysLanguageVo
      • SysLanguageVo
      • RSysLanguageVo
      • RListSysLanguageGroupVo
      • TableDataInfoSysLanguageGroupVo
      • SysLanguageGroupVo
      • RSysLanguageGroupVo
      • RListSysLanguageTypeVo
      • TableDataInfoSysLanguageTypeVo
      • SysLanguageTypeVo
      • RSysLanguageTypeVo
      • RouterVo
      • RListRouterVo
      • MetaVo
      • RListSysMenuVo
      • RMenuTreeSelectVo
      • MenuTreeSelectVo
      • SysMenuVo
      • RSysMenuVo
      • TableDataInfoSysNoticeVo
      • SysNoticeVo
      • RSysNoticeVo
      • TableDataInfoSysPostVo
      • RListSysPostVo
      • RSysPostVo
      • RDeptTreeSelectVo
      • DeptTreeSelectVo
      • TableDataInfoSysRoleVo
      • RListSysRoleVo
      • RSysRoleVo
      • TableDataInfoSysSiteConfigVo
      • SysSiteConfigVo
      • RSysSiteConfigVo
      • SysSocialVo
      • RListSysSocialVo
      • TableDataInfoSysTenantVo
      • TableDataInfoSysTenantPackageVo
      • RListSysTenantPackageVo
      • SysTenantPackageVo
      • RSysTenantPackageVo
      • SysTenantVo
      • RSysTenantVo
      • SysUserInfoVo
      • SysPostVo
      • RSysUserInfoVo
      • UserInfoVo
      • RUserInfoVo
      • RListSysUserVo
      • TableDataInfoSysUserVo
      • SysUserVo
      • SysRoleVo
      • SysDeptVo
      • RProfileVo
      • ProfileVo
      • DeptResourceVo
      • SysOssUploadVo
      • RSysOssUploadVo
      • ResourceTree
      • RListResourceTree
      • DeptResourceBo
      • RListLanguageIndexBo
      • RMapStringString
      • LanguageIndexBo
      • SysOssConfigBo
      • SysChannelConfigBo
      • SysChannelTemplateBo
      • SysChannelTypeBo
      • SysClientBo
      • SysConfigBo
      • SysDeptBo
      • SysDictDataBo
      • SysDictTypeBo
      • SysJobTypeBo
      • SysLanguageGroupBo
      • SysLanguageTypeBo
      • SysLanguageBo
      • SysMenuBo
      • SysNoticeBo
      • SysPostBo
      • SysUserRole
      • SysRoleBo
      • SysSiteConfigBo
      • SysTenantPackageBo
      • SysTenantBo
      • SysUserPasswordBo
      • SysUserProfileBo
      • SysUserBo
      • RCaptchaVo
      • CaptchaVo
      • TenantListVo
      • RLoginTenantVo
      • LoginTenantVo
      • RLoginVo
      • LoginVo
      • RegisterBody
      • SocialLoginBody
      • RMapImagesVo
      • MapImagesVo
    • DevicePositionBo
    • WdfLampSceneEventBo
    • WdfLampEventBo
    • RListString
    • WdfInspectReportBo
    • WdfInspectRecordBo
    • LocalTime
    • WdfInspectConfigBo
    • TableDataInfoWdfAlarmEventVo
    • RWdfAlarmEventVo
    • WdfAlarmTemplateVo
    • RWdfAlarmTemplateVo
    • AttendanceStaffRecordBo
    • TableDataInfoWdfBusinessAlarmConfigVo
    • AttendanceShiftsBo
    • WdfBusinessAlarmConfigVo
    • AttendanceShiftsBreakTimesBo
    • RWdfBusinessAlarmConfigVo
    • AttendanceShiftRecordBo
    • TableDataInfoCameraInfoVo
    • AttendanceScheduleSetting
    • RCameraInfoVo
    • JSONConfig
    • CameraInfoVo
    • JSONObject
    • TableDataInfoCameraSourceInfoVo
    • RJSONObject
    • RCameraSourceInfoVo
    • WorkingAreaDto
    • CameraSourceInfoVo
    • TableDataInfoSysCarVo
    • WdfAlarmConfigBo
    • SysCarVo
    • WdfLampSceneBo
    • RSysCarVo
    • WdfLampExceptionBo
    • TableDataInfoSysCarModelVo
    • WdfLampConfigBo
    • SysCarModelVo
    • RSysCarModelVo
    • TableDataInfoEngineInfoVo
    • REngineInfoVo
    • EngineInfoVo
    • RFeature
    • RListFeature
    • Geometry
    • Feature
    • LampStatisticsParamsBo
    • TableDataInfoFenceInfoVo
    • KeyValueFloatVo
    • RListFenceInfoVo
    • RListKeyValueFloatVo
    • RFenceInfoVo
    • KeyValueDoubleVo
    • FenceInfoVo
    • RListKeyValueDoubleVo
    • TableDataInfoWdfHardAlarmConfigVo
    • RListWdfLampEventVo
    • WdfHardAlarmConfigVo
    • WdfLampEventVo
    • RWdfHardAlarmConfigVo
    • ReSetInfo
    • TableDataInfoHistoryNodeVo
    • ReBootInfo
    • TableDataInfoHistoryMapListVo
    • WdfUpgradeScriptBo
    • HistoryMapListVo
    • UnBindBo
    • RHistoryProcessVo
    • StaffExportAndPrintQuery
    • PieChartVo
    • HistoryProcessVo
    • HistoryProcessNode
    • HistoryProcessEdge
    • HistoryNodeVo
    • ReportRollcallBo
    • BarChartVo
    • ReportRollcallDetailBo
    • TableDataInfoMapInfoVo
    • RMapInfoVo
    • MaterialExportAndPrintQuery
    • MapInfoVo
    • TableDataInfoMaterialInfoVo
    • Respond to the information subject
    • RMaterialInfoVo
    • MaterialInfoVo
    • TableDataInfoDeviceResourceTypeVo
    • RDeviceResourceTypeVo
    • DeviceResourceTypeVo
    • RListHistoryPositionVo
    • RListSysProductVo
    • FenceRecordVo
    • RListSysProductAttributeVo
    • TableDataInfoSysProductAttributeVo
    • HeatmapFenceByTypeStatistics
    • SysProductAttributeVo
    • HeatmapFenceStatistics
    • TableDataInfoSysProductVo
    • HeatmapStatistics
    • SysProductVo
    • RHeatmapStatistics
    • RSysProductVo
    • HeatmapAggResult
    • TableDataInfoVisitRegisterRecordVo
    • RListHeatmapAggResult
    • VisitRegisterRecordVo
    • TimeDo
    • RVisitRegisterRecordVo
    • GatheringInfo
    • RDevicePositionDetails
    • RListGatheringInfo
    • DevicePositionDetails
    • WarnInfo
    • DeviceBinding
    • ExerciseReportBo
    • RListSysStaffVo
    • ExerciseConfigBo
    • TableDataInfoSysStaffVo
    • ForbiddenStatus
    • SysStaffVo
    • DeviceExportAndPrintQuery
    • RSysStaffVo
    • TableDataInfoSysVisitorVo
    • SysVisitorVo
    • RSysVisitorVo
    • GatewayParamBo
    • WdfAlarmEvent
    • DeviceBasicInfoVo
    • RHistoryPositionVo
    • DeviceBasicModel
    • PositionNode
    • ConfigRollcall
    • HistoryPositionVo
    • ConfigRollcallBo
    • HistoryInfoBo
    • CarExportAndPrintQuery
    • SysProductAttributeBo
    • RListSysCarVo
    • RapidEvacuationBo
    • EngineMessageDispatchBo
    • RListObject
    • RListAlarmStatisticsVo
    • AlarmStatisticsVo
    • AttendanceScheduleStaff
    • RListKeyValueVo
    • R
    • KeyValueVo
    • AttendanceScheduleSettingBo
    • WdfAlarmEventVo
    • StaffShift
    • RListWdfAlarmEventVo
    • AttendanceWorkingAreaBo
    • StatisticsParamsBo
    • AlarmEventExportAndPrintQuery
    • WdfAlarmEventBo
    • GatherAlarmVo
    • WdfBusinessAlarmConfigBo
    • RListGatherAlarmVo
    • CameraInfoBo
    • CameraSourceInfoBo
    • LampPositionConfig
    • SysCarModelBo
    • LampGearConfig
    • SysCarBo
    • SectionInfo
    • EngineInfoBo
    • NetworkDeviceInfo
    • FenceInfoBo
    • RListNetworkDeviceInfo
    • WdfHardAlarmConfigBo
    • MapInfoBo
    • DeviceResourceTypeBo
    • MaterialInfoBo
    • SysProductBo
    • VisitRegisterRecordBo
    • SysStaffBo
    • SysVisitorBo
    • DeviceBindingLatestInfo
    • DeviceDisplayIconInfo
    • RListDeviceBindingLatestInfo
    • TagPositionInfo
    • DeviceBasicInfo
    • DeviceStatusStatisticsVo
    • RMapStringListDeviceStatusStatisticsVo
    • RListDeviceStatusStatisticsVo
    • RListJSONObject
    • FeatureCollection
    • RFeatureCollection
    • GatewayRtlsInfo
    • RListGatewayRtlsInfo
    • DeviceInfoInFence
    • TableDataInfoDeviceInfoInFence
    • BusinessAlarmConfigSingle
    • FenceBusinessStatistics
    • RFenceBusinessStatistics
    • FenceBusinessStatisticsInfo
    • RFenceBusinessStatisticsInfo
    • DeviceRtlsInfo
    • RListDeviceRtlsInfo
    • DeviceBloodOxygenSensor
    • DeviceHeartRateSensor
    • DeviceSensorInfo
    • DeviceStepCountSensor
    • TableDataInfoSysDeviceVo
    • SysDeviceVo
    • RSysDeviceVo
    • WdfRebootLogVo
    • AttributeInfo
    • WdfUpgradeScriptLogVo
    • RMapStringObject
    • AnchorRtlsInfo
    • RListAnchorRtlsInfo
    • ReportRollcallVo
    • TableDataInfoReportRollcallVo
    • ReportRollcallDetailVo
    • TableDataInfoReportRollcallDetailVo
    • RMapIntegerListSysProductVo
    • ProductTypeGroupVo
    • RListProductTypeGroupVo
    • SysProductSimpleVo
    • RBoolean
    • DevicePositionVo
    • RDevicePositionVo
    • TableDataInfoDevicePositionVo
    • RWdfLampSceneEventVo
    • WdfLampSceneEventVo
    • TableDataInfoWdfLampSceneEventVo
    • RWdfLampEventVo
    • TableDataInfoWdfLampEventVo
    • RWdfInspectReportVo
    • WdfInspectDetailVo
    • WdfInspectFenceVo
    • WdfInspectReportVo
    • TableDataInfoWdfInspectReportVo
    • RWdfInspectRecordVo
    • WdfInspectRecordVo
    • TableDataInfoWdfInspectRecordVo
    • FenceDetailInfo
    • MapInfoDetail
    • RWdfInspectConfigVo
    • WdfInspectConfigVo
    • TableDataInfoWdfInspectConfigVo
    • MapEventMergeVo
    • RListMapEventMergeVo
    • HistoryMapQueryBo
    • FinalPosition
    • TreeNodeConfig
    • RListFinalPosition
    • TreeLong
    • StaffFinalPositionVo
    • RListTreeLong
    • RStaffFinalPositionByMapIdVo
    • StaffFinalPositionByMapIdVo
    • FenceEventMergeVo
    • FenceStatisticVo
    • RListFenceStatisticVo
    • PageQuery
    • ExerciseReportVo
    • TableDataInfoExerciseReportVo
    • ExerciseConfigVo
    • SysDeviceAttribute2Bo
    • TableDataInfoExerciseConfigVo
    • SysDeviceAttributeItemBo
    • SysDeviceAttribute1Bo
    • RListDeviceBasicInfoVo
    • RListDeviceBinding
    • TableDataInfoMapStringObject
    • SysDeviceBo
    • FenceCamerasInfo
    • RListFenceCamerasInfo
    • AttendanceStaffEventVo
    • AttendanceStaffRecordVo
    • RAttendanceStaffEventVo
    • TableDataInfoAttendanceStaffRecordVo
    • AttendanceShiftsBreakTimesVo
    • AttendanceShiftsVo
    • RString
    • RAttendanceShiftsVo
    • TableDataInfoAttendanceShiftsVo
    • AttendanceShiftRecordVo
    • RAttendanceShiftRecordVo
    • TableDataInfoAttendanceShiftRecordVo
    • AttendanceScheduleSettingVo
    • TableDataInfoAttendanceScheduleSettingVo
    • RWorkingAreaDto
    • TableDataInfoWorkingAreaDto
    • RVoid
    • RSilenceVo
    • RObject
    • SilenceVo
    • RWdfAlarmConfigVo
    • WdfAlarmConfigVo
    • TableDataInfoWdfAlarmConfigVo
    • RListWdfAlarmConfigVo
    • RMapStringListWdfAlarmConfigVo
    • RWdfLampSceneVo
    • WdfLampSceneVo
    • TableDataInfoWdfLampSceneVo
    • RListWdfLampSceneVo
    • RWdfLampExceptionVo
    • WdfLampExceptionVo
    • TableDataInfoWdfLampExceptionVo
    • RWdfLampConfigVo
    • WdfLampConfigVo
    • TableDataInfoWdfLampConfigVo
    • RListWdfLampConfigVo
    • RListWdfLampLightEffectVo
    • WdfLampLightEffectVo
    • RListMapStringObject
    • RInteger
    • ExerciseReportDetailBo
    • TableDataInfo
  1. ‌Login Authentication

‌Interface Encryption Usage Instructions

For security reasons, the login API uses encrypted transmission. We implement this with a combination of AES + RSA, and all APIs that require encryption use this same method.
The advantage of symmetric encryption with AES is high efficiency for encryption and decryption, but it is not secure enough on its own, because the key must remain known only to the communicating parties. That is difficult to guarantee using only symmetric encryption.
The advantage of asymmetric encryption with RSA is relatively secure data transmission, but its encryption and decryption efficiency is low. However, when encrypting only a few bytes of AES key data, the time cost is negligible.
Therefore, by combining the strengths of both and avoiding their weaknesses, AES + RSA provides a much more robust data encryption solution.
Use AES to encrypt the data for efficient encryption and decryption
Use RSA to encrypt the AES key to ensure secure transmission of the AES key
Performing encryption and decryption on the browser side can only guarantee that:
1.
The transmitted data is encrypted or encoded, so even if someone intercepts it with packet capture tools, they cannot understand it or it is difficult to decrypt
2.
The data has not been tampered with, and the sender’s identity can be verified
Detailed encryption steps:
1.
The client uses a random function to generate the key required for AES encryption (hereinafter referred to as the AES key)
The AES key length is 32 characters.
// Generate a random string of the specified length
generateRandomStr() {
  let code = '';
  const chars = 'abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789';
  const charsArr = chars.split('');

  for (let i = 0; i < 32; i++) {
    const num = Math.floor(Math.random() * charsArr.length);
    code += charsArr[num];
  }
  return code;
}
2.
The client uses RSA to encrypt the AES key it generated and passes it through the request header with the parameter name: encrypt-key
The AES key must first be Base64-encoded before being encrypted with RSA.
The RSA public key is:
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==
Use the frontend RSA and AES utility libraries for encryption. Frontend library versions:
"crypto-js": "^4.1.1","jsencrypt": "3.3.1"
import JSEncrypt from 'jsencrypt';
import CryptoJS from 'crypto-js';

// Encrypt
export const encrypt = (txt: string) => {
  const encryptor = new JSEncrypt();
  encryptor.setPublicKey(publicKey); // Set public key
  return encryptor.encrypt(txt); // Encrypt data
};

/**
 * Base64 encoding
 * @returns {string}
 */
export const encryptBase64 = (str: CryptoJS.lib.WordArray) => {
  return CryptoJS.enc.Base64.stringify(str);
};

/**
 * Generate a random AES key
 * @returns {string}
 */
export const generateAesKey = () => {
  return CryptoJS.enc.Utf8.parse(generateRandomStr());
};
The specific generation method is:
3.
The client uses AES and the key generated in step 1 to encrypt the data to be transmitted, and sends it in the request body
4.
The client calls the API and sends the encrypted AES key and encrypted data
After setting token, clientid, and encrypt-key, the API can be called.
request.headers['Authorization'] = 'Bearer ' + getToken();
request.headers['clientid'] = clientid;
request.headers['encrypt-key'] = encrypt(encryptBase64(aesKey));

request.data = typeof request.data === 'object'
  ? encryptWithAes(JSON.stringify(request.data), aesKey)
  : encryptWithAes(request.data, aesKey);
Modified at 2026-04-07 09:06:42
Previous
‌Authorization Code Heartbeat API (Recommended)
Next
‌Login API
Built with