Skip to content

Sprint 16. Add module structure and test#3

Merged
basementdoor merged 7 commits intomainfrom
add-item-requests-and-gateway
Feb 15, 2026
Merged

Sprint 16. Add module structure and test#3
basementdoor merged 7 commits intomainfrom
add-item-requests-and-gateway

Conversation

@basementdoor
Copy link
Copy Markdown
Owner

Добавлена функциональность запроса вещи
Проект разделен на два модуля - gateway (принимает запросы и валидирует их) и server (с основной логикой и валидацией на уровне БД)
Написаны тесты

private final ItemRepository itemRepository;
private final UserRepository userRepository;

User owner;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Этим полям, тк же нужна инкапсуляция.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

поправил

private final UserRepository userRepository;
private final ItemRepository itemRepository;

User requester;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Все поля необходимо инкапсулировать.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

поправил

private final UserServiceImpl userService;
private final UserRepository userRepository;

UserDto userDto;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Аналогично.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

готово

@basementdoor basementdoor merged commit 159bcc7 into main Feb 15, 2026
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.

2 participants