Przeglądaj źródła

add type in ICommentRequest

visuddhinanda 2 lat temu
rodzic
commit
a4729a7493
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      dashboard/src/components/api/Comment.ts

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

@@ -1,4 +1,5 @@
 import { IUser } from "../auth/User";
+import { TDiscussionType } from "../discussion/Discussion";
 import { TContentType } from "../discussion/DiscussionCreate";
 import { TResType } from "../discussion/DiscussionListCard";
 
@@ -6,6 +7,7 @@ export interface ICommentRequest {
   id?: string;
   res_id?: string;
   res_type?: string;
+  type?: TDiscussionType;
   title?: string;
   content?: string;
   content_type?: TContentType;
@@ -21,6 +23,7 @@ export interface ICommentApiData {
   id: string;
   res_id: string;
   res_type: TResType;
+  type: TDiscussionType;
   title?: string;
   content?: string;
   content_type?: TContentType;
@@ -49,6 +52,8 @@ export interface ICommentListResponse {
     count: number;
     active: number;
     close: number;
+    can_create: boolean;
+    can_reply: boolean;
   };
 }
 export interface ICommentAnchorResponse {