소스 검색

add content_type

visuddhinanda 3 년 전
부모
커밋
8c4a3e3487
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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;