working on words
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Expose, Type } from 'class-transformer';
|
||||
import { UserResponseDTO } from './userresponse.dto';
|
||||
|
||||
export class PlayerResponseDTO {
|
||||
constructor(partial: Partial<PlayerResponseDTO>) {
|
||||
Object.assign(this, partial);
|
||||
this.user = partial.user;
|
||||
}
|
||||
|
||||
@Type(() => UserResponseDTO)
|
||||
@Expose()
|
||||
user: UserResponseDTO;
|
||||
|
||||
@Expose()
|
||||
score: number;
|
||||
}
|
||||
Reference in New Issue
Block a user