Browse Source
feat: approval requested participant group (#276)
feat: approval requested participant group (#276)
* feat: Add group participant request management functionality - Introduced new endpoints for handling requested participants in groups: - GET /group/participants/requested to retrieve requested participants. - POST /group/participants/requested/approve to approve participant requests. - POST /group/participants/requested/reject to reject participant requests. - Added corresponding methods in the group service to manage participant requests. - Implemented validation for new request types to ensure proper data handling. * feat: Update API version and enhance group participant request management - Bumped API version from 5.3.0 to 5.4.0. - Added new endpoints for managing group participant requests: - GET /group/participant-requests to retrieve pending requests. - POST /group/participant-requests/approve to approve requests. - POST /group/participant-requests/reject to reject requests. - Updated group service methods to handle new request types and responses. - Enhanced front-end components to support requested member management. * chore: Update dependency versions in go.mod and go.sum - Bumped versions for several dependencies: - github.com/PuerkitoBio/goquery from v1.10.2 to v1.10.3 - github.com/mattn/go-sqlite3 from v1.14.27 to v1.14.28 - go.mau.fi/whatsmeow to a new version - golang.org/x/image from v0.25.0 to v0.26.0 - golang.org/x/net from v0.38.0 to v0.39.0 - github.com/pelletier/go-toml/v2 from v2.2.3 to v2.2.4 - golang.org/x/crypto from v0.36.0 to v0.37.0 - Added new indirect dependencies for petermattis/goid and updated existing ones. * refactor: Change receiver type for ChangePushName method in userService * refactor: Rename group participant request endpoints and streamline request handling - Updated API endpoints for managing group participant requests: - Changed GET /group/participants/requested to GET /group/participant-requests - Changed POST /group/participants/requested/approve to POST /group/participant-requests/approve - Changed POST /group/participants/requested/reject to POST /group/participant-requests/reject - Refactored front-end methods to handle the new endpoint structure and consolidate approval/rejection logic. * feat: Add validation for empty Group ID in participant request listing - Implemented a check to ensure Group ID is not empty in the ListParticipantRequests method. - Returns a 400 Bad Request response with an appropriate error message if Group ID is missing. * feat: Enhance participant request management with error handling - Updated ManageGroupRequestParticipants method to include error handling for participant requests. - Added validation for the Action field in participant management requests to ensure it is not empty and is one of the allowed values. * refactor: Update message handling to use domainMessage consistently - Removed redundant import of message package. - Updated ReactMessage method to use domainMessage types for request and response, ensuring consistency across the service.pull/280/head v5.6.0
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 534 additions and 102 deletions
-
154docs/openapi.yaml
-
91readme.md
-
4src/config/settings.go
-
19src/domains/group/group.go
-
18src/go.mod
-
20src/go.sum
-
83src/internal/rest/group.go
-
66src/services/group.go
-
3src/services/message.go
-
3src/services/user.go
-
29src/validations/group_validation.go
-
2src/views/assets/app.css
-
136src/views/components/GroupList.js
-
4src/views/index.html
Write
Preview
Loading…
Cancel
Save
Reference in new issue