feat: add alarm-host

This commit is contained in:
yangsy
2025-11-26 16:28:05 +08:00
parent 8fa904dfc0
commit 68052f7630
15 changed files with 238 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
export const DeviceType = {
AlarmHost: 'ndmAlarmHost',
Camera: 'ndmCamera',
Nvr: 'ndmNvr',
Switch: 'ndmSwitch',
@@ -13,6 +14,7 @@ export type DeviceTypeKey = keyof typeof DeviceType;
export type DeviceTypeVal = (typeof DeviceType)[DeviceTypeKey];
export const DeviceTypeCode: Record<DeviceTypeVal, string[]> = {
[DeviceType.AlarmHost]: ['117'],
[DeviceType.Camera]: ['131', '132'],
[DeviceType.Nvr]: ['111', '118'],
[DeviceType.Switch]: ['220'],
@@ -24,6 +26,7 @@ export const DeviceTypeCode: Record<DeviceTypeVal, string[]> = {
};
export const DeviceTypeName: Record<DeviceTypeVal, string> = {
[DeviceType.AlarmHost]: '报警主机',
[DeviceType.Camera]: '摄像机',
[DeviceType.Nvr]: '网络录像机',
[DeviceType.Switch]: '交换机',