Commit 7b42722 1 parent e806608 commit 7b42722 Copy full SHA for 7b42722
File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ export class GetUserInfo {
42
42
example : '안녕하세요' ,
43
43
} )
44
44
bio : string ;
45
+
46
+ @ApiProperty ( {
47
+ description : '생일' ,
48
+ example : '2000-12-17' ,
49
+ } )
50
+ birthDate : string ;
45
51
}
46
52
47
53
export class GetOtherUserInfo extends GetUserInfo {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {
27
27
import { PatchUserResponse } from './dto/response/patch-user.response' ;
28
28
import { GetOtherUserInfo } from './dto/response/get-user.response' ;
29
29
import { MatchingService } from 'src/matching/matching.service' ;
30
+ import dayjs from 'dayjs' ;
30
31
31
32
@ApiBearerAuth ( 'Authorization' )
32
33
@Controller ( 'user' )
@@ -64,6 +65,7 @@ export class UserController {
64
65
nickname : user . nickname ,
65
66
profilePictureUrl : user . profilePictureUrl ,
66
67
bio : user . bio ,
68
+ birthDate : dayjs ( user . birthDate ) . format ( 'YYYY-MM-DD' ) ,
67
69
isFriend : isFriend ,
68
70
} ) ;
69
71
}
You can’t perform that action at this time.
0 commit comments