declare interface ResData<T> {
  data: T;
  errmsg: string;
  errno: number;
}

declare interface GenreItem {
  id: number;
  name: string;
  uri: string;
}

declare interface Detail {
  id: number;
  img: string;
  name: string;
  other_name: string;
  uri: string;
  author: string;
  desc: string;
  genres: GenreItem[];
  host: string;
  status: string;
  source: string;
  create_time: string;
  update_time: string;
  Chapters: number;
}

declare interface ListItem {
  author: string;
  genre: string;
  img: string;
  name: string;
  stauts: number;
  uri: string;
}

declare interface ChapterItem {
  id: number;
  novel_id: number;
  name: string;
  source_url: string;
  uri: string;
  sort: number;
  create_time: string;
  update_time: string;
}

declare interface ChapterListData {
  chapters: ChapterItem[];
  novel: {
    name: string;
  };
}

declare interface ChapterData {
  chapter: string;
  content: string;
  next: string;
  pre: string;
  title: string;
}
