//查询设备列表参数
export interface EquipmentList {
  code: string | number;

  name: string | number;

  monitoringArea: string | number;

  status: number;
}
/** 设备编辑 / 新增提交体（与 /device/info/edit 入参一致） */
export interface DeviceInfoForm extends BaseEntity {
  id?: string | number;
  code?: string;
  name?: string;
  monitoringArea?: string;
  drawArea?: string;
  status?: number;
  model?: string;
  isDrawArea?: number;
  isDelete?: number;
  /** 若依扩展参数 */
  params?: Record<string, Record<string, unknown>>;
}

export interface DeviceInfo {
  id?: number;
  code?: string;
  name?: string;
  monitoringArea?: string;
  status?: number | string;
  model?: string;
  isDrawArea?: number | string;
  [key: string]: any;
}

// 报警区域数据类型
export interface AlarmAreaData {
  deviceId: number;
  x1: number;
  y1: number;
  x2: number;
  y2: number;
}
