forked from 9oormthon-univ/2024_DANPOONG_TEAM_5_BE
-
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
0f73d2e
commit 5f0e23c
Showing
4 changed files
with
84 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
30 changes: 30 additions & 0 deletions
30
src/main/java/com/jangburich/domain/store/dto/response/OrdersDetailResponse.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,30 @@ | ||
package com.jangburich.domain.store.dto.response; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@RequiredArgsConstructor | ||
public class OrdersDetailResponse { | ||
private Long id; | ||
private String teamName; | ||
private String teamUserName; | ||
private List<Menu> menus; | ||
private LocalDateTime dateTime; | ||
private Integer amount; | ||
private Integer totalPrice; | ||
private Integer discountPrice; | ||
|
||
@Getter | ||
@Setter | ||
public static class Menu { | ||
private String menuName; | ||
private Integer amount; | ||
} | ||
} | ||
|
7 changes: 7 additions & 0 deletions
7
src/main/java/com/jangburich/domain/store/exception/OrdersNotFoundException.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,7 @@ | ||
package com.jangburich.domain.store.exception; | ||
|
||
public class OrdersNotFoundException extends RuntimeException { | ||
public OrdersNotFoundException() { | ||
super("해당 가게를 찾을 수 없습니다."); | ||
} | ||
} |
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