export interface AnnouncementListBody {
  status: boolean;
  data: {
    links: {
      previous: string | null;
      next: string | null;
    };
    total_items: number;
    total_pages: number;
    page_size: number;
    current_page: number;
    results: AnnouncementListBodyRes[];
  };
}

export interface AnnouncementListBodyRes {
  id: number;
  title: string;
  description: string;
  total_view_count: number;
  files: {
    id: number;
    file: string;
  }[];
  status: 'pending' | 'paid' | 'verified' | 'canceled';
  types: {
    id: number;
    name: string;
    icon_name: string | null;
  }[];
  created_at: string;
}

export interface AnnouncementDetailBody {
  status: boolean;
  data: {
    id: number;
    title: string;
    description: string;
    total_view_count: number;
    files: {
      id: number;
      file: string;
    }[];
    status: 'pending' | 'paid' | 'verified' | 'canceled';
    types: {
      id: number;
      name: string;
      icon_name: string;
    }[];
    created_at: string;
  };
}
