-
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.
Showing
6 changed files
with
78 additions
and
9 deletions.
There are no files selected for viewing
14 changes: 12 additions & 2 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,9 +1,19 @@ | ||
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 String role) { | ||
return new MemberJoinResponse(role); | ||
public static MemberJoinResponse of( | ||
final Long seniorId, | ||
final String role | ||
) { | ||
return new MemberJoinResponse( | ||
seniorId, | ||
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
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
28 changes: 28 additions & 0 deletions
28
src/main/java/org/sopt/seonyakServer/domain/senior/dto/SeniorCardProfileResponse.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,28 @@ | ||
package org.sopt.seonyakServer.domain.senior.dto; | ||
|
||
public record SeniorCardProfileResponse( | ||
String nickname, | ||
String company, | ||
String field, | ||
String position, | ||
String detailPosition, | ||
String level | ||
) { | ||
public static SeniorCardProfileResponse of( | ||
final String nickname, | ||
final String company, | ||
final String field, | ||
final String position, | ||
final String detailPosition, | ||
final String level | ||
) { | ||
return new SeniorCardProfileResponse( | ||
nickname, | ||
company, | ||
field, | ||
position, | ||
detailPosition, | ||
level | ||
); | ||
} | ||
} |
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