从"Blog"仓库中分离出来
This commit is contained in:
19
admin/src/app/classes/commentReq.ts
Normal file
19
admin/src/app/classes/commentReq.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user