27 lines
449 B
TypeScript
27 lines
449 B
TypeScript
import {User} from './User';
|
|
|
|
export class Comment {
|
|
id?: number;
|
|
fromUser: User;
|
|
toUser?: User;
|
|
content: string;
|
|
pagePath: string;
|
|
date?: string;
|
|
pid: number;
|
|
respComment: Comment[];
|
|
status: number;
|
|
}
|
|
|
|
|
|
export class CommentReq {
|
|
id?: number;
|
|
content: string;
|
|
pid: number = -1;
|
|
toUserId: number;
|
|
pagePath: string;
|
|
|
|
constructor(pagePath: string) {
|
|
this.pagePath = pagePath;
|
|
}
|
|
}
|