You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
439 B

import { CommentItem } from '~/domain/models/comment/comment'
export class CommentReadDTO {
id: number;
user: number;
username: string;
documentText: string;
text: string;
createdAt: string;
constructor(item: CommentItem) {
this.id = item.id;
this.user = item.user;
this.username = item.username;
this.documentText = item.documentText;
this.text = item.text;
this.createdAt = item.createdAt;
}
}