import type { DeviceRelatedTest } from './deviceRelatedTests'
|
|
export type CollectorOnlineStatus = '在线' | '离线'
|
export type CollectorStatus = '启用' | '禁用'
|
|
export interface DeviceCollectorRecord {
|
id: number
|
adapterId: number | null
|
deviceCode: string
|
ip: string
|
mac: string
|
name: string
|
manufacturer: string
|
model: string
|
channelCount: number
|
remark: string
|
onlineStatus: CollectorOnlineStatus
|
relatedTests: DeviceRelatedTest[]
|
status: CollectorStatus
|
createdAt: string
|
}
|
|
export type CollectorPayload = Pick<DeviceCollectorRecord, 'adapterId' | 'deviceCode' | 'ip' | 'mac' | 'name' | 'manufacturer' | 'model' | 'channelCount' | 'remark' | 'onlineStatus' | 'relatedTests' | 'status'>
|