-
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.
Merge pull request #64 from 28th-meetup/feat/myStoreMenu
Feat/my store menu
- Loading branch information
Showing
6 changed files
with
86 additions
and
2 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
39 changes: 39 additions & 0 deletions
39
src/main/java/com/kusitms/jipbap/store/dto/StoreInfoDto.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,39 @@ | ||
package com.kusitms.jipbap.store.dto; | ||
|
||
import com.kusitms.jipbap.store.Store; | ||
import lombok.*; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class StoreInfoDto { | ||
private Long id; | ||
private String name; | ||
private String description; | ||
private Boolean koreanYn; | ||
private Double avgRate; // 가게 평점 | ||
private Long minOrderAmount; //최소 주문 금액 | ||
private String[] images; | ||
private String address; | ||
private String detailAddress; | ||
private String phoneNum; | ||
private String deliveryRegion; | ||
private String operationTime; | ||
|
||
public StoreInfoDto(Store store) { | ||
this.id = store.getId(); | ||
this.name = store.getName(); | ||
this.description = store.getDescription(); | ||
this.koreanYn = store.getKoreanYn(); | ||
this.avgRate = store.getAvgRate(); | ||
this.minOrderAmount = store.getMinOrderAmount(); | ||
this.images = new String[]{store.getImage(), store.getImage2(), store.getImage3()}; | ||
this.address = store.getAddress(); | ||
this.detailAddress = store.getDetailAddress(); | ||
this.phoneNum = store.getPhoneNum(); | ||
this.deliveryRegion = store.getDeliveryRegion(); | ||
this.operationTime = store.getOperationTime(); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/kusitms/jipbap/store/dto/StoreInfoResponse.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,16 @@ | ||
package com.kusitms.jipbap.store.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class StoreInfoResponse { | ||
private StoreInfoDto storeInfoDto; | ||
private Boolean isBookmarked; | ||
private Boolean isFoodChangeable; | ||
} |