export interface ImageItem {
  url: string;
  name?: string;
  size?: number;
  file?: File;
}

export interface ActTableSearch {
  carNumber?: string;
  violateName?: string;
  deptName?: string;
  violateType?: number;
  isNotice?: number;
  searchTime?: string[];
}

export interface ActTableQuery extends Omit<ActTableSearch, 'searchTime'> {
  pageType: number; //1-违规行为 2-违规通知
  startTime?: string | null;
  endTime?: string | null;
}

export interface ActTableData {
  id: number;
  createSource: number; //1-人工创建 2-外部获取
  carNumber: string;
  violateBy?: number;
  violateName?: string;
  deptName?: string;
  staffNo?: string;
  violateType: number; //1-超速 2-逆行 3-违规停车
  speed?: number;
  violateLocation?: string;
  captureTime: string;
  capturePhotos?: string;
  createdBy?: number;
  remark?: string;
  isNotice?: number; //0-未通知 1-已通知
  creatName?: string;
}

export interface CreateActRuleForm {
  carNumber: string;
  violateType: number | null; //1-超速 2-逆行 3-违规停车
  speed?: number | null;
  violateLocation?: string;
  captureTime: string;
  capturePhotos?: ImageItem[];
  remark?: string;
  creatName?: string;
}

export interface CreateActQuery {
  createSource: 1;
  carNumber: string;
  violateType: number; //1-超速 2-逆行 3-违规停车
  speed?: number | null;
  violateLocation?: string;
  captureTime: string;
  capturePhotos?: string;
  remark?: string;
  creatName?: string;
}

// export interface UpdateActRuleForm extends CreateActRuleForm {
//   id: number;
// }
export interface UpdateActQuery extends CreateActQuery {
  id: number;
}
