瀏覽代碼

add IChapterToc

visuddhinanda 3 年之前
父節點
當前提交
392ce2817d
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      dashboard/src/components/api/Article.ts

+ 9 - 0
dashboard/src/components/api/Article.ts

@@ -65,6 +65,14 @@ export interface IArticleDataRequest {
   status: number;
   status: number;
   lang: string;
   lang: string;
 }
 }
+export interface IChapterToc {
+  book: number;
+  paragraph: number;
+  level: number;
+  pali_title: string /**巴利文标题 */;
+  title?: string /**译文文标题 */;
+  progress?: number[];
+}
 export interface IArticleDataResponse {
 export interface IArticleDataResponse {
   uid: string;
   uid: string;
   title: string;
   title: string;
@@ -72,6 +80,7 @@ export interface IArticleDataResponse {
   summary: string;
   summary: string;
   content?: string;
   content?: string;
   content_type?: string;
   content_type?: string;
+  toc?: IChapterToc[];
   html?: string;
   html?: string;
   path?: ITocPathNode[];
   path?: ITocPathNode[];
   status: number;
   status: number;