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