-
Notifications
You must be signed in to change notification settings - Fork 0
реализовать микросервисную архитектуру #3
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
Conversation
| ); | ||
| } | ||
|
|
||
| /*public ResponseEntity<Object> getBookings(long userId, BookingState state, Integer from, Integer size) { |
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.
Не оставляй закоментированные куски в числовом коде
| return bookingClient.create(userId, requestDto); | ||
| } | ||
|
|
||
| @GetMapping("/{bookingId}") |
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.
Пути принято писать через тире
gateway/src/main/java/ru/practicum/shareit/booking/BookingController.java
Outdated
Show resolved
Hide resolved
| @AllArgsConstructor | ||
| public class BookingShortDto { | ||
| private Long id; | ||
| private Long bookerId; |
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.
Вместо множественных private принято использовать@FieldFefaults
| @NotBlank | ||
| private String name; | ||
| @NotBlank | ||
| private String description; |
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.
То же самое
…nto add-item-requests-and-gateway # Conflicts: # gateway/src/main/java/ru/practicum/shareit/booking/BookingController.java # gateway/src/main/java/ru/practicum/shareit/item/ItemController.java # server/src/main/java/ru/practicum/shareit/booking/BookingController.java
No description provided.