17 lines
283 B
TypeScript
17 lines
283 B
TypeScript
import { Expose } from 'class-transformer';
|
|
|
|
export class UserResponseDTO {
|
|
constructor(partial: Partial<UserResponseDTO>) {
|
|
Object.assign(this, partial);
|
|
this.id = partial.id;
|
|
}
|
|
@Expose()
|
|
id: string;
|
|
|
|
@Expose()
|
|
username: string;
|
|
|
|
@Expose()
|
|
avatar: string;
|
|
}
|