From 6822f4ae7bd20419e0c0e67512090cb7396a134c Mon Sep 17 00:00:00 2001 From: Kim SeongHyeon Date: Sun, 8 Sep 2024 22:22:32 +0900 Subject: [PATCH] =?UTF-8?q?mod::=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=EB=B0=8F=20=EC=88=98=EC=A0=95=20=EC=8B=9C=20?= =?UTF-8?q?=EB=B3=B8=EB=AA=85=20=EB=8C=80=EC=8B=A0=20username=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=EB=90=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/user/dto/get-profile-response.dto.ts | 6 +++--- src/user/dto/set-profile-request.dto.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/user/dto/get-profile-response.dto.ts b/src/user/dto/get-profile-response.dto.ts index 5b7d282d..54765dca 100644 --- a/src/user/dto/get-profile-response.dto.ts +++ b/src/user/dto/get-profile-response.dto.ts @@ -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; @@ -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; diff --git a/src/user/dto/set-profile-request.dto.ts b/src/user/dto/set-profile-request.dto.ts index dcab1b78..d2ba239d 100644 --- a/src/user/dto/set-profile-request.dto.ts +++ b/src/user/dto/set-profile-request.dto.ts @@ -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()