@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
37 lines (36 loc) • 876 B
TypeScript
import { User } from './User';
export interface CommentLike {
comments: Array<Comment>;
likes: Array<Like>;
}
export interface CommentLikeTemplateSettings {
enableRichText: boolean;
enableBestReply: boolean;
canMarkBestReply: boolean;
}
/**
*
* parentId: Which comment that this comment reply on
* structureParentId: Which comment that this comment will be display as a child
*
* */
export interface Comment {
topicId: string;
id: string;
parentId?: string;
content: string;
bestReply: boolean;
createdBy: string;
createdAt: string;
modifiedAt?: string;
deletedBy?: string;
createdByUser: User;
deletedByUser?: User;
structureParentId?: string;
}
export interface Like {
topicId: string;
commentId?: string;
createdBy: string;
createdByUser?: User;
}