import { Audit, IAudit } from "./audit"; import { ISkDocumentPublicList } from "./document"; import { ISkUser, SkUser } from "./user"; export interface IComment extends IAudit { id?: number; author?: ISkUser; content?: string; secret?: boolean; } export declare class SkComment extends Audit { id: number; author: SkUser; content: string; secret: boolean; constructor(data?: IComment); } /** * 문서용 댓글 데이터 정의 */ export interface ISkDocumentCommentUpdate { content?: string; secret?: boolean; } export interface ISkDocumentCommentWrite extends ISkDocumentCommentUpdate { documentId?: number; parentId?: number; } export interface ISkDocumentCommentParent extends IComment { document?: ISkDocumentPublicList; childrens: ISkDocumentCommentChild[]; childrenCount: number; } export interface ISkDocumentCommentChild extends IComment { } export declare class SkDocumentCommentParent extends SkComment { document: ISkDocumentPublicList; childrens: SkDocumentCommentChild[]; childrenCount: number; constructor(data: ISkDocumentCommentParent); } export declare class SkDocumentCommentChild extends SkComment { constructor(data: ISkDocumentCommentChild); }