visuddhinanda 2 лет назад
Родитель
Сommit
dd9c67850c
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      dashboard/src/components/api/Comment.ts

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

@@ -10,6 +10,7 @@ export interface ICommentRequest {
   content?: string;
   content_type?: TContentType;
   parent?: string;
+  status?: "active" | "close";
   editor?: IUserApiData;
   created_at?: string;
   updated_at?: string;
@@ -23,6 +24,7 @@ export interface ICommentApiData {
   content?: string;
   content_type?: TContentType;
   parent?: string;
+  status?: "active" | "close";
   children_count: number;
   editor: IUserApiData;
   created_at?: string;
@@ -38,7 +40,12 @@ export interface ICommentResponse {
 export interface ICommentListResponse {
   ok: boolean;
   message: string;
-  data: { rows: ICommentApiData[]; count: number };
+  data: {
+    rows: ICommentApiData[];
+    count: number;
+    active: number;
+    close: number;
+  };
 }
 export interface ICommentAnchorResponse {
   ok: boolean;