-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Repository and TransactionStore Interfaces for Database and Cache Operations #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
internal/interfaces/http/handler.go:17
- [nitpick] Consider renaming the parameter 'gcs' to 'gachaService' for clarity and consistency with other service parameters.
func NewHandler(us UserService, as AuthService, gs GoalService, is InvestmentService, ts TransactionService, gcs GachaService, log logger.Logger) *Handler {
…d MongoDB persistence
1fc2e26 to
b98dd84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Description
This pull request defines interfaces for interacting with both the database and the cache for transaction-related operations.
Key Features:
RepositoryInterface:Create: Adds a new transaction to the database.FindByUserId: Retrieves all transactions for a specific user from the database.TransactionStoreInterface:GetByUserId: Retrieves cached transactions for a specific user.SetByUserId: Stores transactions for a specific user in the cache.DeleteByUserId: Deletes cached transactions for a specific user.Tests
Other Changes