Template
fix : unify dto conversion
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export class UserResponseDTO {
|
||||
constructor(partial: Partial<UserResponseDTO>) {
|
||||
Object.assign(this, partial);
|
||||
this.id = partial.id;
|
||||
this.username = partial.username;
|
||||
this.avatar = partial.avatar;
|
||||
}
|
||||
id: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user