Browse Source

content 可选

visuddhinanda 3 years ago
parent
commit
bf8edc6fd0
1 changed files with 5 additions and 4 deletions
  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;