yeg
5 天以前 9dfc7d64b00a704b7e77a6000c1dcadd66b0d345
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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'>