Skip to content

Commit

Permalink
Merge pull request #98 from DevKor-github/feature/user
Browse files Browse the repository at this point in the history
feature/user
  • Loading branch information
KimSeongHyeonn authored Sep 9, 2024
2 parents 6f4427d + 6822f4a commit d29814b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/user/dto/get-profile-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { CharacterType } from 'src/enums/character-type.enum';
import { Language } from 'src/enums/language';

export class GetProfileResponseDto {
@ApiProperty({ description: '본명' })
name: string;
@ApiProperty({ description: '유저아이디' })
username: string;

@ApiProperty({ description: '국적' })
country: string;
Expand Down Expand Up @@ -43,7 +43,7 @@ export class GetProfileResponseDto {
selectedLevel: number;

constructor(user: UserEntity, character: CharacterEntity) {
this.name = user.name;
this.username = user.username;
this.country = user.country;
this.homeUniversity = user.homeUniversity;
this.major = user.major;
Expand Down
4 changes: 2 additions & 2 deletions src/user/dto/set-profile-request.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { IsDate, IsNotEmpty, IsOptional, IsString } from 'class-validator';
export class SetProfileRequestDto {
@IsOptional()
@IsString()
@ApiProperty({ description: '본명' })
name: string;
@ApiProperty({ description: '유저아이디' })
username: string;

@IsOptional()
@IsString()
Expand Down

0 comments on commit d29814b

Please sign in to comment.