File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
src/main/java/cmf/commitField Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 8
8
@ SpringBootApplication
9
9
@ EnableJpaAuditing
10
10
@ EnableScheduling
11
- public class CommitFieldApplication {
11
+ public class
12
+ CommitFieldApplication {
12
13
public static void main (String [] args ) {
13
14
SpringApplication .run (CommitFieldApplication .class , args );
14
15
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class UserController {
18
18
private final UserService userService ;
19
19
private final TotalCommitService totalCommitService ;
20
20
21
- @ GetMapping ("info" )
21
+ @ GetMapping ("/ info" )
22
22
public ResponseEntity <UserInfoDto > getUserInfo (@ AuthenticationPrincipal CustomOAuth2User oAuth2User ){
23
23
String username = oAuth2User .getName ();
24
24
Original file line number Diff line number Diff line change 10
10
public class UserInfoDto {
11
11
12
12
private String username ;
13
+ private String nickname ;
13
14
private String email ;
14
15
private String avatarUrl ;
15
16
private LocalDateTime createdAt ;
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ public UserInfoDto showUserInfo(String username) {
57
57
58
58
return UserInfoDto .builder ()
59
59
.username (user .getUsername ())
60
+ .nickname (user .getNickname ())
60
61
.email (user .getEmail ())
61
62
.avatarUrl (user .getAvatarUrl ())
62
63
.tier (user .getTier ().toString ())
You can’t perform that action at this time.
0 commit comments