import { ImageItem } from '@/components/UploadImages/types';

export interface AccessTableQuery {
  fieldType?: number | null; //1-事件,2-地点
  fieldContent?: string | null;
  startTime?: string | null;
  endTime?: string | null;
}

export interface AccessDetailResponse {
  id: number;
  eventDescription: string;
  eventLocation: string;
  eventTime: string;
  images?: string;
  remark?: string;
  createdByName?: string;
}

export interface CreateAccessRuleForm {
  eventDescription: string;
  eventLocation: string;
  eventTime: string;
  images?: ImageItem[];
  remark?: string;
  createdByName?: string;
}

export interface CreateAccessQuery {
  eventDescription: string;
  eventLocation: string;
  eventTime: string;
  images?: string;
  remark?: string;
}

export interface UpdateAccessQuery extends CreateAccessQuery {
  id: number;
}
