| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import { IUser } from "../auth/User";
- import { TContentType } from "../discussion/DiscussionCreate";
- import { TResType } from "../discussion/DiscussionListCard";
- export interface ICommentRequest {
- id?: string;
- res_id?: string;
- res_type?: string;
- title?: string;
- content?: string;
- content_type?: TContentType;
- parent?: string;
- tpl_id?: string;
- status?: "active" | "close";
- editor?: IUser;
- created_at?: string;
- updated_at?: string;
- }
- export interface ICommentApiData {
- id: string;
- res_id: string;
- res_type: TResType;
- title?: string;
- content?: string;
- content_type?: TContentType;
- html?: string;
- parent?: string;
- tpl_id?: string;
- status?: "active" | "close";
- children_count?: number;
- editor: IUser;
- created_at?: string;
- updated_at?: string;
- }
- export interface ICommentResponse {
- ok: boolean;
- message: string;
- data: ICommentApiData;
- }
- export interface ICommentListResponse {
- ok: boolean;
- message: string;
- data: {
- rows: ICommentApiData[];
- count: number;
- active: number;
- close: number;
- };
- }
- export interface ICommentAnchorResponse {
- ok: boolean;
- message: string;
- data: string;
- }
|