-
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.
Merge branch 'main' into feat/102-log-level-setting
- Loading branch information
Showing
18 changed files
with
274 additions
and
128 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
8 changes: 0 additions & 8 deletions
8
...java/contest/collectingbox/module/collectingbox/domain/CollectingBoxRepositoryCustom.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/main/java/contest/collectingbox/module/collectingbox/domain/Tags.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,22 @@ | ||
package contest.collectingbox.module.collectingbox.domain; | ||
|
||
import contest.collectingbox.global.exception.CollectingBoxException; | ||
|
||
import java.util.List; | ||
|
||
import static contest.collectingbox.global.exception.ErrorCode.NOT_SELECTED_TAG; | ||
|
||
public class Tags { | ||
private final List<Tag> tags; | ||
|
||
public Tags(List<Tag> tags) { | ||
if (tags == null || tags.isEmpty()) { | ||
throw new CollectingBoxException(NOT_SELECTED_TAG); | ||
} | ||
this.tags = tags; | ||
} | ||
|
||
public List<Tag> getTags() { | ||
return List.copyOf(tags); | ||
} | ||
} |
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: 14 additions & 0 deletions
14
...t/collectingbox/module/collectingbox/domain/repository/CollectingBoxRepositoryCustom.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,14 @@ | ||
package contest.collectingbox.module.collectingbox.domain.repository; | ||
|
||
import contest.collectingbox.module.collectingbox.domain.Tags; | ||
import contest.collectingbox.module.collectingbox.dto.CollectingBoxDetailResponse; | ||
import contest.collectingbox.module.collectingbox.dto.CollectingBoxResponse; | ||
import contest.collectingbox.module.location.domain.GeoPoint; | ||
|
||
import java.util.List; | ||
|
||
public interface CollectingBoxRepositoryCustom { | ||
CollectingBoxDetailResponse findDetailById(Long id); | ||
|
||
List<CollectingBoxResponse> findAllWithinArea(GeoPoint center, int radius, Tags tags); | ||
} |
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
Oops, something went wrong.