-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from AlongTheBlue/develop
[Feat] Restaurant&Cafe 페이지네이션 작업중
- Loading branch information
Showing
11 changed files
with
126 additions
and
48 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
2 changes: 0 additions & 2 deletions
2
src/main/java/org/alongtheblue/alongtheblue_server/global/data/cafe/CafeImageRepository.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
5 changes: 5 additions & 0 deletions
5
src/main/java/org/alongtheblue/alongtheblue_server/global/data/cafe/CafeRepository.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
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
10 changes: 10 additions & 0 deletions
10
...ain/java/org/alongtheblue/alongtheblue_server/global/data/cafe/CafeSimpleInformation.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,10 @@ | ||
package org.alongtheblue.alongtheblue_server.global.data.cafe; | ||
|
||
import java.util.List; | ||
|
||
public interface CafeSimpleInformation { | ||
String getContentId(); | ||
String getTitle(); | ||
String getAddress(); | ||
List<CafeImage> getImages(); | ||
} |
45 changes: 45 additions & 0 deletions
45
...java/org/alongtheblue/alongtheblue_server/global/data/cafe/CafeSimpleInformationImpl.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,45 @@ | ||
package org.alongtheblue.alongtheblue_server.global.data.cafe; | ||
|
||
import org.alongtheblue.alongtheblue_server.global.data.restaurant.RestaurantImage; | ||
import org.alongtheblue.alongtheblue_server.global.data.restaurant.RestaurantSimpleInformation; | ||
|
||
import java.util.List; | ||
|
||
public class CafeSimpleInformationImpl implements CafeSimpleInformation { | ||
|
||
private String contentId; | ||
private String title; | ||
private String address; | ||
private List<CafeImage> images; | ||
|
||
public CafeSimpleInformationImpl(String contentId, String title, String address, List<CafeImage> images) { | ||
this.contentId = contentId; | ||
this.title = title; | ||
this.address = address; | ||
this.images = images; | ||
} | ||
|
||
@Override | ||
public String getContentId() { | ||
return contentId; | ||
} | ||
|
||
@Override | ||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
@Override | ||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
@Override | ||
public List<CafeImage> getImages() { | ||
return images; | ||
} | ||
|
||
public void addImages(List<CafeImage> newImages) { | ||
this.images.addAll(newImages); // 기존 이미지 리스트에 새로운 이미지 추가 | ||
} | ||
} |
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