Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package org.festimate.team.api.auth.dto;

public record TokenResponse(Long userId,
String accessToken,
String refreshToken
public record TokenResponse(
Long userId,
String accessToken,
String refreshToken
) {
public static TokenResponse of(Long userId, String accessToken, String refreshToken) {
return new TokenResponse(userId, accessToken, refreshToken);
Expand Down
17 changes: 9 additions & 8 deletions src/main/java/org/festimate/team/api/user/dto/SignUpRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
import org.festimate.team.domain.user.entity.Mbti;
import org.festimate.team.domain.user.entity.Platform;

public record SignUpRequest(String name,
String phoneNumber,
String nickName,
int birthYear,
Gender gender,
Mbti mbti,
AppearanceType appearanceType,
Platform platform
public record SignUpRequest(
String name,
String phoneNumber,
String nickName,
int birthYear,
Gender gender,
Mbti mbti,
AppearanceType appearanceType,
Platform platform
) {
public static SignUpRequest toUserSignUp(SignUpRequest request) {
return new SignUpRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class Festival extends BaseTimeEntity {
private List<Matching> matchings;

@Builder
public Festival(String title, Category category, LocalDate startDate, LocalDate endDate, LocalDateTime matchingStartAt, String inviteCode) {
private Festival(String title, Category category, LocalDate startDate, LocalDate endDate, LocalDateTime matchingStartAt, String inviteCode) {
this.title = title;
this.category = category;
this.startDate = startDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class FestivalHost {
private LocalDateTime addedAt;

@Builder
public FestivalHost(Festival festival, User host) {
private FestivalHost(Festival festival, User host) {
this.festival = festival;
this.host = host;
this.addedAt = LocalDateTime.now();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Matching extends BaseTimeEntity {
private LocalDateTime matchDate;

@Builder
public Matching(Festival festival, Participant applicantParticipant, Participant targetParticipant,
private Matching(Festival festival, Participant applicantParticipant, Participant targetParticipant,
MatchingStatus status, LocalDateTime matchDate) {
this.festival = festival;
this.applicantParticipant = applicantParticipant;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Participant extends BaseTimeEntity {
private List<Matching> matchingsAsTarget;

@Builder
public Participant(User user, Festival festival, TypeResult typeResult, String introduction, String message) {
private Participant(User user, Festival festival, TypeResult typeResult, String introduction, String message) {
this.user = user;
this.festival = festival;
this.typeResult = typeResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Point extends BaseTimeEntity {
private TransactionType transactionType;

@Builder
public Point(Participant participant, Integer point, TransactionType transactionType) {
private Point(Participant participant, Integer point, TransactionType transactionType) {
this.participant = participant;
this.point = point;
this.transactionType = transactionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class User extends BaseTimeEntity {
private String refreshToken;

@Builder
public User(String name, String phoneNumber, String nickname, Integer birthYear, Gender gender, Mbti mbti,
private User(String name, String phoneNumber, String nickname, Integer birthYear, Gender gender, Mbti mbti,
AppearanceType appearanceType, String platformId, Platform platform, String refreshToken) {
this.name = name;
this.phoneNumber = phoneNumber;
Expand Down
Loading