Pārlūkot izejas kodu

add content_type

visuddhinanda 3 gadi atpakaļ
vecāks
revīzija
8c4a3e3487
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      dashboard/src/components/api/Comment.ts

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

@@ -1,3 +1,4 @@
+import { TContentType } from "../comment/CommentCreate";
 import { IUserApiData } from "./Auth";
 
 export interface ICommentRequest {
@@ -6,6 +7,7 @@ export interface ICommentRequest {
   res_type?: string;
   title?: string;
   content?: string;
+  content_type?: TContentType;
   parent?: string;
   editor?: IUserApiData;
   created_at?: string;
@@ -18,6 +20,7 @@ export interface ICommentApiData {
   res_type: string;
   title?: string;
   content?: string;
+  content_type?: TContentType;
   parent?: string;
   children_count: number;
   editor: IUserApiData;