Skip to content

RANDOMWALK-201 Add email sending event listener#7

Merged
kryakobess merged 3 commits into
mainfrom
feature/RANDOMWALK-201
Apr 29, 2025
Merged

RANDOMWALK-201 Add email sending event listener#7
kryakobess merged 3 commits into
mainfrom
feature/RANDOMWALK-201

Conversation

@kryakobess

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 29, 2025 11:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an email sending event listener and related functionality to integrate email notifications via Kafka events.

  • Added mail configuration to application.yml.
  • Introduced EmailService interface and its implementation in EmailServiceImpl.
  • Created SendEmailEventListener to process Kafka events and updated TestController with an endpoint to test email sending.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/resources/application.yml Added Spring Mail configuration properties.
src/main/java/ru/randomwalk/twitterservice/service/impl/EmailServiceImpl.java Implemented email sending logic.
src/main/java/ru/randomwalk/twitterservice/service/EmailService.java Declared email service interface.
src/main/java/ru/randomwalk/twitterservice/listener/SendEmailEventListener.java Added event listener for email events.
src/main/java/ru/randomwalk/twitterservice/controller/TestController.java Added REST endpoint for testing email sending.

Comment thread src/main/resources/application.yml Outdated
Comment thread src/main/resources/application.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kryakobess kryakobess merged commit d438118 into main Apr 29, 2025
1 check passed
@kryakobess kryakobess deleted the feature/RANDOMWALK-201 branch April 29, 2025 15:12
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