feat(invitations): implement group invitation functionality with email notifications and management routes - #61
Merged
Conversation
…l notifications and management routes
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a complete invitation system for group management, enabling admins and moderators to invite users to groups via email, manage invitations, and handle acceptance workflows. The implementation covers models, repositories, services, handlers, routes, and email notifications.
Invitation system implementation:
GroupInvitationmodel with invitation statuses and relations to groups and users. (backend/internal/models/group_invitation.go)InvitationRepositorywith methods to create, query, and update invitations in the database. (backend/internal/repositories/invitation_repository.go)InvitationServicewith business logic for sending, accepting, listing, canceling, and retrieving invitation info, including role checks and email notification triggers. (backend/internal/services/invitation_service.go)API and handler integration:
InvitationHandlerwith endpoints for sending invitations, listing/canceling invitations, getting invitation info, and accepting invitations, along with error handling. (backend/internal/handlers/invitation_handler.go)backend/internal/handlers/dto/invitation.go)Routing and application wiring:
backend/internal/routes/invitation.go,backend/internal/routes/routes.go,backend/cmd/server/main.go) [1] [2] [3] [4] [5] [6] [7]Email notification enhancements:
SendGroupInvitationEmailinEmailServiceto send styled invitation emails with CTA links and expiration info. (backend/internal/services/email_service.go)Related to #30, #31, #32, #33