yeg
2026-09-05 dbefaa087017ba2056ebc13bcd4d41de47ddb4e6
src/stores/deviceCollectors.ts
@@ -1,5 +1,6 @@
import type { DeviceRelatedTest } from './deviceRelatedTests'
export type CollectorOnlineStatus = '在线' | '离线'
export type CollectorTestStatus = '测试中' | '空闲'
export type CollectorStatus = '启用' | '禁用'
export interface DeviceCollectorRecord {
@@ -13,10 +14,9 @@
  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'>