2024-11-28 14:30:49 +08:00
|
|
|
import type { ReqPage, ResPage } from '@/api/interface'
|
2024-10-23 20:53:58 +08:00
|
|
|
|
|
|
|
|
// 检测源模块
|
|
|
|
|
export namespace TestSource {
|
2026-06-01 09:26:01 +08:00
|
|
|
/**
|
|
|
|
|
* 检测源表格分页查询参数
|
|
|
|
|
*/
|
|
|
|
|
export interface ReqTestSourceParams extends ReqPage {
|
|
|
|
|
id: string
|
|
|
|
|
name: string
|
|
|
|
|
pattern: string
|
|
|
|
|
}
|
2024-11-28 14:30:49 +08:00
|
|
|
|
2024-10-31 08:51:30 +08:00
|
|
|
// 检测源接口
|
2024-11-28 14:30:49 +08:00
|
|
|
export interface ResTestSource {
|
2026-06-01 09:26:01 +08:00
|
|
|
id: string
|
|
|
|
|
name?: string
|
|
|
|
|
pattern: string
|
|
|
|
|
type: string
|
|
|
|
|
devType: string
|
|
|
|
|
maxVoltage?: number
|
|
|
|
|
maxCurrent?: number
|
|
|
|
|
parameter?: string
|
|
|
|
|
state: number
|
|
|
|
|
createBy?: string
|
|
|
|
|
createTime?: string
|
|
|
|
|
updateBy?: string
|
|
|
|
|
updateTime?: string
|
2024-10-23 20:53:58 +08:00
|
|
|
}
|
2026-06-01 09:26:01 +08:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 检测源查询分页返回的对象
|
|
|
|
|
*/
|
|
|
|
|
export interface ResTestSourcePage extends ResPage<ResTestSource> {}
|
|
|
|
|
|
|
|
|
|
export interface ParameterType {
|
|
|
|
|
id: string
|
|
|
|
|
type: string
|
|
|
|
|
desc: string
|
|
|
|
|
value: string | null
|
|
|
|
|
sort: number
|
|
|
|
|
pId: string
|
|
|
|
|
children?: ParameterType[]
|
2024-11-29 16:29:26 +08:00
|
|
|
}
|
2026-06-01 09:26:01 +08:00
|
|
|
}
|