-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 로그인 API 응답에 memberId와 nickname 필드 추가 (#322)
* feat: 로그인 API 응답에 memberId와 nickname 필드 추가 * refactor: 로그인용 dto 분리 및 공통 dto에 prefix로 auth 추가 * feat: valid 어노테이션 추가
- Loading branch information
1 parent
c6a71e9
commit 0c3b932
Showing
13 changed files
with
64 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
backend/src/main/java/com/zzang/chongdae/auth/service/dto/AuthInfoDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.zzang.chongdae.auth.service.dto; | ||
|
||
public record AuthInfoDto(AuthMemberDto authMember, AuthTokenDto authToken) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
backend/src/main/java/com/zzang/chongdae/auth/service/dto/AuthTokenDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.zzang.chongdae.auth.service.dto; | ||
|
||
public record AuthTokenDto(String accessToken, String refreshToken) { | ||
} |
8 changes: 8 additions & 0 deletions
8
backend/src/main/java/com/zzang/chongdae/auth/service/dto/LoginResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.zzang.chongdae.auth.service.dto; | ||
|
||
public record LoginResponse(Long memberId, String nickname) { | ||
|
||
public LoginResponse(AuthMemberDto authMember) { | ||
this(authMember.id(), authMember.nickname()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
backend/src/main/java/com/zzang/chongdae/auth/service/dto/SignupResponseDto.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
backend/src/main/java/com/zzang/chongdae/auth/service/dto/TokenDto.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters