yeg
2026-09-05 dbefaa087017ba2056ebc13bcd4d41de47ddb4e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { DeviceRelatedTest } from './deviceRelatedTests'
 
export type CabinetOnlineStatus = '在线' | '离线'
export type CabinetStatus = '启用' | '禁用'
 
export interface DeviceCabinetRecord {
  id: number
  deviceCode: string
  ip: string
  mac: string
  name: string
  manufacturer: string
  model: string
  channelCount: number
  specs: number
  remark: string
  onlineStatus: CabinetOnlineStatus
  relatedTests: DeviceRelatedTest[]
  status: CabinetStatus
  createdAt: string
}
 
export type CabinetPayload = Pick<DeviceCabinetRecord, 'deviceCode' | 'ip' | 'mac' | 'name' | 'manufacturer' | 'model' | 'channelCount' | 'specs' | 'remark' | 'onlineStatus' | 'relatedTests' | 'status'>