| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import type { IUser } from "../auth/User"
- import type { TDiscussionType } from "../discussion/Discussion"
- import type { TContentType } from "../discussion/DiscussionCreate"
- import type { TResType } from "../discussion/DiscussionListCard"
- import type { ITagMapData } from "./Tag"
- 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: { discussions: IDiscussionCountData[]; tags: ITagMapData[] };
- }
|