Files
webapp-front/dto/userresponse.dto.ts
T
2024-12-29 12:24:32 +01:00

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;
}