2026-06-18 16:35:06 +08:00
|
|
|
export namespace ParsePqdif {
|
|
|
|
|
export type ParseStatus = 'SUCCESS' | 'FAILED' | (string & {})
|
|
|
|
|
export type SeriesDataStatus = 'DATA_SUCCESS' | 'DATA_FAILED' | (string & {})
|
2026-06-23 08:24:40 +08:00
|
|
|
export type ParseResultValue = 0 | 1
|
2026-06-18 16:35:06 +08:00
|
|
|
|
|
|
|
|
export interface RecordItem {
|
|
|
|
|
recordIndex?: number
|
|
|
|
|
typeGuid?: string
|
|
|
|
|
typeName?: string
|
|
|
|
|
observation?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface SeriesItem {
|
|
|
|
|
seriesIndex?: number
|
|
|
|
|
quantityUnitsId?: number
|
|
|
|
|
quantityCharacteristicGuid?: string
|
|
|
|
|
valueTypeGuid?: string
|
|
|
|
|
seriesBaseType?: number
|
|
|
|
|
scale?: number
|
|
|
|
|
offset?: number
|
|
|
|
|
dataStatus?: SeriesDataStatus
|
|
|
|
|
dataMessage?: string | null
|
|
|
|
|
valueCount?: number
|
|
|
|
|
firstValues?: number[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ChannelItem {
|
|
|
|
|
channelIndex?: number
|
|
|
|
|
name?: string
|
|
|
|
|
seriesCount?: number
|
|
|
|
|
phaseId?: number
|
|
|
|
|
quantityTypeGuid?: string
|
|
|
|
|
quantityMeasuredId?: number
|
|
|
|
|
series?: SeriesItem[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ObservationItem {
|
|
|
|
|
recordIndex?: number
|
|
|
|
|
name?: string
|
|
|
|
|
timeStartExcelDays?: number
|
|
|
|
|
timeStartText?: string
|
|
|
|
|
channelCount?: number
|
|
|
|
|
channels?: ChannelItem[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ParseResponse {
|
|
|
|
|
status?: ParseStatus
|
|
|
|
|
message?: string
|
|
|
|
|
fileName?: string | null
|
|
|
|
|
nativeVersion?: string | null
|
|
|
|
|
recordCount?: number
|
|
|
|
|
observationCount?: number
|
|
|
|
|
sampleValueCount?: number
|
|
|
|
|
records?: RecordItem[]
|
|
|
|
|
observations?: ObservationItem[]
|
|
|
|
|
}
|
2026-06-23 08:24:40 +08:00
|
|
|
|
|
|
|
|
export interface PqdifPathListParams {
|
|
|
|
|
keyword?: string
|
|
|
|
|
result?: ParseResultValue | ''
|
|
|
|
|
pageNum?: number
|
|
|
|
|
pageSize?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PqdifPathRecord {
|
|
|
|
|
id?: string
|
|
|
|
|
name?: string
|
|
|
|
|
filePath?: string
|
|
|
|
|
recordCount?: number
|
|
|
|
|
observationCount?: number
|
|
|
|
|
sampleValueCount?: number
|
|
|
|
|
state?: number
|
|
|
|
|
result?: ParseResultValue
|
|
|
|
|
msg?: Record<string, unknown> | null
|
|
|
|
|
createBy?: string
|
|
|
|
|
createTime?: string
|
|
|
|
|
updateBy?: string
|
|
|
|
|
updateTime?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PqdifPathSaveParams {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PqdifParseDetail {
|
|
|
|
|
id?: string
|
|
|
|
|
name?: string
|
|
|
|
|
filePath?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PqdifParseMsg = Record<string, unknown> | null
|
|
|
|
|
|
|
|
|
|
export interface SaveParseResultParams {
|
|
|
|
|
recordCount?: number
|
|
|
|
|
observationCount?: number
|
|
|
|
|
sampleValueCount?: number
|
|
|
|
|
result: ParseResultValue
|
|
|
|
|
msg?: Record<string, unknown> | null
|
|
|
|
|
}
|
2026-06-18 16:35:06 +08:00
|
|
|
}
|