-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1392324
commit 5d0bc30
Showing
13 changed files
with
169 additions
and
52 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
src/main/java/com/odiga/fiesta/common/config/JsonCustomConfig.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
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
29 changes: 29 additions & 0 deletions
29
src/main/java/com/odiga/fiesta/festival/dto/response/RecommendFestivalResponse.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,29 @@ | ||
package com.odiga.fiesta.festival.dto.response; | ||
|
||
import java.util.List; | ||
|
||
import com.odiga.fiesta.user.domain.UserType; | ||
import com.odiga.fiesta.user.dto.response.UserTypeResponse; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RecommendFestivalResponse { | ||
|
||
List<FestivalInfo> festivals; | ||
UserTypeResponse userType; | ||
|
||
@Builder | ||
private RecommendFestivalResponse(List<FestivalInfo> festivals, UserTypeResponse userType) { | ||
this.festivals = festivals; | ||
this.userType = userType; | ||
} | ||
|
||
public static RecommendFestivalResponse of(List<FestivalInfo> festivals, UserType userType) { | ||
return RecommendFestivalResponse.builder() | ||
.festivals(festivals) | ||
.userType(UserTypeResponse.of(userType)) | ||
.build(); | ||
} | ||
} |
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
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/odiga/fiesta/user/dto/response/UserTypeResponse.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,26 @@ | ||
package com.odiga.fiesta.user.dto.response; | ||
|
||
import com.odiga.fiesta.user.domain.UserType; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class UserTypeResponse { | ||
|
||
private Long userTypeId; | ||
private String name; | ||
|
||
@Builder | ||
private UserTypeResponse(Long userTypeId, String name) { | ||
this.userTypeId = userTypeId; | ||
this.name = name; | ||
} | ||
|
||
public static UserTypeResponse of(UserType usertype) { | ||
return UserTypeResponse.builder() | ||
.userTypeId(usertype.getId()) | ||
.name(usertype.getName()) | ||
.build(); | ||
} | ||
} |
Oops, something went wrong.