| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import { IUser } from "../auth/User";
- import { TDiscussionType } from "../discussion/Discussion";
- import { TContentType } from "../discussion/DiscussionCreate";
- import { TResType } from "../discussion/DiscussionListCard";
- export interface ICommentRequest {
- id?: string;
- res_id?: string;
- res_type?: string;
- type?: TDiscussionType;
- title?: string;
- content?: string;
- content_type?: TContentType;
- parent?: string;
- topicId?: 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;
- type: TDiscussionType;
- title?: string;
- content?: string;
- content_type?: TContentType;
- html?: string;
- summary?: 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;
- can_create: boolean;
- can_reply: boolean;
- };
- }
- export interface ICommentAnchorResponse {
- ok: boolean;
- message: string;
- data: string;
- }
- export interface IDiscussionCountRequest {
- course_id?: string | null;
- sentences: string[][];
- }
- export interface IDiscussionCountWbw {
- book_id: number;
- paragraph: number;
- wid: number;
- }
- export interface IDiscussionCountData {
- id: string;
- res_id: string;
- type: string;
- editor_uid: string;
- wbw?: IDiscussionCountWbw;
- }
- export interface IDiscussionCountResponse {
- ok: boolean;
- message: string;
- data: IDiscussionCountData[];
- }
|