浏览代码

content 可选

visuddhinanda 3 年之前
父节点
当前提交
bf8edc6fd0
共有 1 个文件被更改,包括 5 次插入 和 4 次删除
  1. 5 4
      dashboard/src/components/api/Article.ts

+ 5 - 4
dashboard/src/components/api/Article.ts

@@ -60,8 +60,8 @@ export interface IArticleDataRequest {
   title: string;
   subtitle: string;
   summary: string;
-  content: string;
-  content_type: string;
+  content?: string;
+  content_type?: string;
   status: number;
   lang: string;
 }
@@ -70,8 +70,9 @@ export interface IArticleDataResponse {
   title: string;
   subtitle: string;
   summary: string;
-  content: string;
-  content_type: string;
+  content?: string;
+  content_type?: string;
+  html?: string;
   path?: ITocPathNode[];
   status: number;
   lang: string;