Skip to content

Conversation

@yiqes
Copy link
Owner

@yiqes yiqes commented Nov 21, 2024

No description provided.

);
}

/*public ResponseEntity<Object> getBookings(long userId, BookingState state, Integer from, Integer size) {

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}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пути принято писать через тире

@AllArgsConstructor
public class BookingShortDto {
private Long id;
private Long bookerId;

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;

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
@yiqes yiqes merged commit 895d737 into main Jan 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants