Files
blog-frontEnd/admin/src/app/classes/commentReq.ts
2019-11-28 19:26:45 +08:00

20 lines
390 B
TypeScript

export class CommentReq {
articleID: number;
comment: boolean;
content: string;
id: number;
pid: number;
responseId: string;
constructor(comment: boolean) {
this.comment = comment;
this.responseId = '';
if (!comment) {
this.articleID = -1;
}
this.pid = -1;
this.id = null;
}
}