-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MERGE/#166] 액세스 토큰 생성 시 유저 회원가입 여부 판단 로직 리팩토링
[REFACTOR/#166] 액세스 토큰 생성 시 유저 회원가입 여부 판단 로직 리팩토링
- Loading branch information
Showing
3 changed files
with
42 additions
and
56 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
14 changes: 2 additions & 12 deletions
14
src/main/java/org/sopt/seonyakServer/domain/member/dto/MemberJoinResponse.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 |
---|---|---|
@@ -1,19 +1,9 @@ | ||
package org.sopt.seonyakServer.domain.member.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public record MemberJoinResponse( | ||
Long seniorId, | ||
String role | ||
) { | ||
public static MemberJoinResponse of( | ||
final Long seniorId, | ||
final String role | ||
) { | ||
return new MemberJoinResponse( | ||
seniorId, | ||
role | ||
); | ||
public static MemberJoinResponse of(final String role) { | ||
return new MemberJoinResponse(role); | ||
} | ||
} |
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