24 lines
508 B
TypeScript
24 lines
508 B
TypeScript
export interface DiscussionPost<T = any> {
|
|
id: number;
|
|
type: string;
|
|
poster_id: number;
|
|
poster_name?: string;
|
|
title: string;
|
|
content: T;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
is_deleted: boolean;
|
|
is_locked: boolean;
|
|
is_open: boolean;
|
|
comments?: DiscussionComment[];
|
|
}
|
|
|
|
export interface DiscussionComment {
|
|
id?: number;
|
|
post_id: number;
|
|
poster_id?: number;
|
|
content: string;
|
|
created_at?: Date;
|
|
updated_at?: Date;
|
|
is_deleted?: boolean;
|
|
} |