Skip to content

Conversation

@walder86
Copy link
Owner

No description provided.

@walder86 walder86 force-pushed the add-item-requests-and-gateway branch 3 times, most recently from d8494ba to 34bacac Compare August 26, 2025 11:47
…идацию в отдельный сервис. Написать тесты.
@walder86 walder86 force-pushed the add-item-requests-and-gateway branch from 34bacac to ab9bbe3 Compare August 26, 2025 13:14

Choose a reason for hiding this comment

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

строчка 145 - эту логику нужно перенести в gateway

@PathVariable Long requestId) {
return itemRequestService.getItemRequestById(userId, requestId);
}
}

Choose a reason for hiding this comment

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

не хватает эндпоинта GET /requests/all , на который можно получить список запросов, созданных другими пользователями

public ItemRequestDto createItemRequest(ItemRequestDto itemRequestDto, Long requesterId) {
User user = userService.getUserWithCheck(requesterId);
ItemRequest newRequest = ItemRequestMapper.toItemRequest(itemRequestDto, user);
newRequest.setRequester(user);

Choose a reason for hiding this comment

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

пользователь и время уже добавлены в newRequest в ItemRequestMapper.toItemRequest()

… Перенести проверку на пустую строку для поиска вещей по тексту в гетвей.
@walder86 walder86 merged commit 8420e1d into main Aug 27, 2025
3 of 4 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