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 88@ SpringBootApplication
99@ EnableJpaAuditing
1010@ EnableScheduling
11- public class CommitFieldApplication {
11+ public class
12+ CommitFieldApplication {
1213 public static void main (String [] args ) {
1314 SpringApplication .run (CommitFieldApplication .class , args );
1415 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class UserController {
1818 private final UserService userService ;
1919 private final TotalCommitService totalCommitService ;
2020
21- @ GetMapping ("info" )
21+ @ GetMapping ("/ info" )
2222 public ResponseEntity <UserInfoDto > getUserInfo (@ AuthenticationPrincipal CustomOAuth2User oAuth2User ){
2323 String username = oAuth2User .getName ();
2424
Original file line number Diff line number Diff line change 1010public class UserInfoDto {
1111
1212 private String username ;
13+ private String nickname ;
1314 private String email ;
1415 private String avatarUrl ;
1516 private LocalDateTime createdAt ;
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ public UserInfoDto showUserInfo(String username) {
5757
5858 return UserInfoDto .builder ()
5959 .username (user .getUsername ())
60+ .nickname (user .getNickname ())
6061 .email (user .getEmail ())
6162 .avatarUrl (user .getAvatarUrl ())
6263 .tier (user .getTier ().toString ())
You can’t perform that action at this time.
0 commit comments