import type { DeviceRelatedTest } from './deviceRelatedTests'
|
|
export type CabinetOnlineStatus = '在线' | '离线'
|
export type CabinetStatus = '启用' | '禁用'
|
|
export interface DeviceCabinetRecord {
|
id: number
|
deviceCode: string
|
ip: string
|
mac: string
|
name: string
|
/** 数据来源名称,用于区分跨机器的同名柜号。 */
|
dataSource: 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'>
|