-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NAYB-157] feat: 점원은 주문을 확인하고 배달을 생성할 수 있다. #120
Conversation
…4-NaBMart into feature/NAYB-157
|
||
public class AlreadyRegisteredDeliveryException extends DeliveryException { | ||
|
||
public AlreadyRegisteredDeliveryException(String message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public AlreadyRegisteredDeliveryException(String message) { | |
public AlreadyRegisteredDeliveryException(final String message) { |
|
||
public record FindPayedOrdersRequest( | ||
@PositiveOrZero(message = "페이지 번호는 음수일 수 없습니다.") | ||
Integer page) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Integer이면 null 값도 들어올 수 있으니 @NotNull을 검증하시는거 어떠신가요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
생성자에서 page에 대한 기본값을 정의해주고 있어서 따로 넣지는 않았습니다!
|
||
public class UnauthorizedOrderException extends OrderException { | ||
|
||
public UnauthorizedOrderException(String message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public UnauthorizedOrderException(String message) { | |
public UnauthorizedOrderException(final String message) { |
public static FindPayedOrdersResponse of( | ||
List<Order> orders, | ||
int page, | ||
long totalElements) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
long totalElements) { | |
final long totalElements) { |
|
||
public record FindPayedOrdersCommand(Long userId, int page) { | ||
|
||
public static FindPayedOrdersCommand of(Long userId, int page) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static FindPayedOrdersCommand of(Long userId, int page) { | |
public static FindPayedOrdersCommand of(final Long userId, final int page) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!!
⛏ 작업 사항
Employee
권한을 추가하였습니다.Order
의 상태를 PAYED에서 DELIVERING으로 변경합니다.📝 작업 요약
💡 관련 이슈