feat: add alarm-host
This commit is contained in:
@@ -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]: '交换机',
|
||||
|
||||
Reference in New Issue
Block a user