Skip to content

Feat: Added custom repository functions in NewsletterRepository and endpoints#702

Open
tachtwitch wants to merge 2 commits intohngprojects:devfrom
tachtwitch:tachtwitch-2
Open

Feat: Added custom repository functions in NewsletterRepository and endpoints#702
tachtwitch wants to merge 2 commits intohngprojects:devfrom
tachtwitch:tachtwitch-2

Conversation

@tachtwitch
Copy link
Contributor

PR Description

This PR resolves the incorrect configuration of the NewsletterRepository interface and implements CRUD features, including retrieving newsletters by user ID, retrieving newsletters created after a specified date, and deleting newsletters by user ID.

Bug fixes:

*Resolved incorrect configuration of NewsletterRepository interface

##New features:

  • Implemented CRUD features for NewsletterRepository interface
  • Added content and title fields to @Entity newsletter
  • Added unit tests for NewsletterRepository methods

Expected Behavior

The NewsletterRepository should correctly perform CRUD operations using the defined @Query annotations.

getNewslettersByUserId Endpoint

postman

getNewslettersAfterDate Endpoint

posttman2

Testing

Test 1: Retrieve newsletters by user ID

  • Unit test: passed

Test 2: Retrieve newsletters created after a specified date

  • Unit test: passed

Test 3: Delete newsletter by user ID

  • Unit test: passed

@tachtwitch tachtwitch closed this Mar 2, 2025
@tachtwitch tachtwitch reopened this Mar 2, 2025
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.

1 participant