
/**
 * 基础
 */
export type VqdAlarmBaseRes = {
  data: string;
};

/**
 * 查询列表响应
 */
export type VqdAlarmRes = {
  items: VqdAlarmItem[];
  /**
   * 总数
   */
  total: number;
};
export type Abnormals = {
  value: number;
  name: string;
}
export type DefaultValues = {
  thr1: number;
  name1: string;
  thr2: number;
  name2: string;
  ratio: number;
}
/**
 * 项
 */
export type VqdAlarmItem = {
  id: number;
  is_deep: boolean;
  channel_id: string;
  channel_name: string;
  plan_id: number;
  plan_name: string;
  task_template_id: number;
  task_template_name: string;
  task_id: number;
  task_name: string;
  file_path: string;
  abnormals: Abnormals[];
  default_values: DefaultValues[];
  created_at?: string;
  updated_at?: string;

};
/**
 * 创建请求
 */
export type VqdAlarmReq = {
  /**
   * 名称模糊搜索
   */
  name?: string;
  /**
   * 页码(1~N)
   */
  page: number;
  /**
   * 单页元素数量(10~100)
   */
  size: number;

}

/**
 * 详情响应（Apifox 未提供具体结构，这里用通用对象）
 */
export type VqdAlarmDetailRes = {
  id: number;
  alarm_name: string;
  alarm_value: string;
  channel_id: string;
  channel_name: string;
  task_template_id: number;
  task_template_name: string;
  task_id: number;
  task_name: string;
  file_path: string;
  created_at?: string;
  updated_at?: string;

}

export type DelVqdAlarmReq = {
  /**
   * IDs
   */
  ids: number[];
};