Files
blog-frontEnd/src/app/class/Comment.ts
2020-05-27 16:41:06 +08:00

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;
}
}