Skip to content

Commit 7b42722

Browse files
committed
feat: 유저 정보 조회 요소 추가
1 parent e806608 commit 7b42722

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/user/dto/response/get-user.response.ts

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ export class GetUserInfo {
4242
example: '안녕하세요',
4343
})
4444
bio: string;
45+
46+
@ApiProperty({
47+
description: '생일',
48+
example: '2000-12-17',
49+
})
50+
birthDate: string;
4551
}
4652

4753
export class GetOtherUserInfo extends GetUserInfo {

src/user/user.controller.ts

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
import { PatchUserResponse } from './dto/response/patch-user.response';
2828
import { GetOtherUserInfo } from './dto/response/get-user.response';
2929
import { MatchingService } from 'src/matching/matching.service';
30+
import dayjs from 'dayjs';
3031

3132
@ApiBearerAuth('Authorization')
3233
@Controller('user')
@@ -64,6 +65,7 @@ export class UserController {
6465
nickname: user.nickname,
6566
profilePictureUrl: user.profilePictureUrl,
6667
bio: user.bio,
68+
birthDate: dayjs(user.birthDate).format('YYYY-MM-DD'),
6769
isFriend: isFriend,
6870
});
6971
}

0 commit comments

Comments
 (0)