This commit is contained in:
yangsy
2025-08-17 01:22:08 +08:00
parent 0577042338
commit 8c8a791409
13 changed files with 663 additions and 62 deletions

View File

@@ -1,22 +1,23 @@
export enum DeviceType {
Switch = '220',
Server = '401+403',
MediaServer = '403',
VideoServer = '401',
Decoder = '114',
Camera = '132',
Nvr = '118',
SecurityBox = '222',
Keyboard = '141',
}
export const DeviceType = {
Camera: '132',
Decoder: '114',
Keyboard: '141',
MediaServer: '403',
Nvr: '118',
SecurityBox: '222',
Switch: '220',
VideoServer: '401',
} as const;
export const deviceTypesMap = new Map<string, string>();
deviceTypesMap.set(DeviceType.Switch, '交换机');
deviceTypesMap.set(DeviceType.Server, '服务器');
deviceTypesMap.set(DeviceType.MediaServer, '媒体服务器');
deviceTypesMap.set(DeviceType.VideoServer, '视频服务器');
deviceTypesMap.set(DeviceType.Decoder, '解码器');
deviceTypesMap.set(DeviceType.Camera, '摄像机');
deviceTypesMap.set(DeviceType.Nvr, '网络录像机');
deviceTypesMap.set(DeviceType.SecurityBox, '智能安防箱');
deviceTypesMap.set(DeviceType.Keyboard, '网络键盘');
export type DeviceTypeCode = keyof typeof DeviceType;
export const DeviceTypeName = {
[DeviceType.Camera]: '摄像机',
[DeviceType.Decoder]: '解码器',
[DeviceType.Keyboard]: '网络键盘',
[DeviceType.MediaServer]: '媒体服务器',
[DeviceType.Nvr]: '网络录像机',
[DeviceType.SecurityBox]: '智能安防箱',
[DeviceType.Switch]: '交换机',
[DeviceType.VideoServer]: '视频服务器',
};