Przeglądaj źródła

summary?: string | null;

visuddhinanda 2 lat temu
rodzic
commit
dfbd197891

+ 3 - 2
dashboard/src/components/api/Article.ts

@@ -61,7 +61,7 @@ export interface IArticleDataRequest {
   uid: string;
   title: string;
   subtitle: string;
-  summary: string;
+  summary?: string | null;
   content?: string;
   content_type?: string;
   status: number;
@@ -80,7 +80,8 @@ export interface IArticleDataResponse {
   uid: string;
   title: string;
   subtitle: string;
-  summary: string;
+  summary: string | null;
+  _summary?: string;
   content?: string;
   content_type?: string;
   toc?: IChapterToc[];

+ 1 - 0
dashboard/src/components/api/Comment.ts

@@ -25,6 +25,7 @@ export interface ICommentApiData {
   content?: string;
   content_type?: TContentType;
   html?: string;
+  summary?: string;
   parent?: string;
   tpl_id?: string;
   status?: "active" | "close";

+ 1 - 1
dashboard/src/components/article/ArticleEdit.tsx

@@ -24,7 +24,7 @@ interface IFormData {
   uid: string;
   title: string;
   subtitle: string;
-  summary: string;
+  summary?: string | null;
   content?: string;
   content_type?: string;
   status: number;

+ 1 - 1
dashboard/src/components/article/ArticleList.tsx

@@ -67,7 +67,7 @@ interface DataItem {
   id: string;
   title: string;
   subtitle: string;
-  summary: string;
+  summary?: string | null;
   anthologyCount?: number;
   anthologyTitle?: string;
   publicity: number;

+ 1 - 1
dashboard/src/components/article/ArticleListPublic.tsx

@@ -15,7 +15,7 @@ interface DataItem {
   id: string;
   title: string;
   subtitle: string;
-  summary: string;
+  summary?: string | null;
   anthologyCount?: number;
   anthologyTitle?: string;
   publicity: number;

+ 1 - 1
dashboard/src/components/article/ArticleView.tsx

@@ -17,7 +17,7 @@ export interface IWidgetArticleData {
   id?: string;
   title?: string;
   subTitle?: string;
-  summary?: string;
+  summary?: string | null;
   content?: string;
   html?: string[];
   path?: ITocPathNode[];