export interface NewsItem {
  id: number;
  // status: number
}

export interface AddressTableListItem {
  id: number;

}

export interface LoginLogListItem {
  id: number;

}

export interface MemberTableListPagination {
  total: number;
  pageSize: number;
  current: number;
}

export interface MemberTableListData {
  list: MemberTableListItem[];
  pagination: Partial<MemberTableListPagination>;
}

export interface NewsListParams {
  id?: number
  all?: boolean
  is_deleted?: boolean
  order_asc?: boolean
  tag?: string
  main_title?: string;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };

}

export interface AddressTableListParams {
  memberId?: number;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };

}

export interface LoginLogListParams {
  memberId?: number;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };

}


export interface LodingInfo {
  total?: number;
  loding: boolean;
  current: number;
  pageSize: number;
}


// export interface NewsDataInfo {
//   id: number;
//   category: string;
//   children: string;
//   content: string;
//   created_time: string;
//   org_id: number;
//   spider_id: number;
//   tag: string;
//   category: string;
//   main_title: string;
//   sub_title: string;
//   summary: string;
//   keywords: string[];
//   seo_keywords: string[];
//   tags: string[];
//   url: string;
//   image_url: string;
//   content: string;
//   is_hotspot: boolean;
//   is_overwritten: boolean;
//   is_deleted: boolean;
//   is_replicate: boolean;
//   is_pushed: boolean;
//   created_time: string;
//   updated_time: string;
//   extra_data: {
//     logs: any; // 此处的类型需根据实际数据类型确定
//   };
// }

export interface NewsParams {
  category?: string;
  main_title: string;
  sub_title?: string;
  summary?: string;
  keywords?: string[];
  seo_keywords?: string[];
  tags?: string[];
  image_url?: string;
  content: string;
}

export interface OptionLog {
  oper_time?: string;
  oper_type: string;
  oper_user?: string;
}


export interface MemberTableListItem {
  id: number;
  status: number
}

export interface AddressTableListItem {
  id: number;

}

export interface LoginLogListItem {
  id: number;

}

export interface MemberTableListPagination {
  total: number;
  pageSize: number;
  current: number;
}

export interface MemberTableListData {
  list: MemberTableListItem[];
  pagination: Partial<MemberTableListPagination>;
}


export interface SubListParams {
  id?: number
  all?: boolean
  is_deleted?: boolean
  order_asc?: boolean
  tag?: string
  main_title?: string;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };

}

export interface AddressTableListParams {
  memberId?: number;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };

}

export interface LoginLogListParams {
  memberId?: number;
  pageSize?: number;
  currentPage?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };

}


export interface LodingInfo {
  total?: number;
  loding: boolean;
}


export interface NewsDataInfo {
  id: number;
  category: string;
  children: string;
  content: string;
  created_time: string;
  org_id: number;
  spider_id: number;
  tag: string;
  category: string;
  main_title: string;
  sub_title: string;
  summary: string;
  language: string;
  keywords: string[];
  seo_keywords: string[];
  tags: string[];
  url: string;
  image_url: string;
  content: string;
  is_hotspot: boolean;
  is_overwritten: boolean;
  is_deleted: boolean;
  is_replicate: boolean;
  // is_pushed: boolean;
  state: number; // 状态(0=未发布订阅 1=已发布订阅 2=已推送)
  created_time: string;
  updated_time: string;
  extra_data: {
    logs: any; // 此处的类型需根据实际数据类型确定
  };
}
