mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 09:46:37 +08:00
feat(message-gateway): add user bind and unbind APIs
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
appgw "github.com/Rain-kl/Wavelet/internal/apps/message_gateway"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// RegisterMessageGatewayUserRoutes mounts user bind/unbind APIs.
|
||||
func RegisterMessageGatewayUserRoutes(apiV1Router *gin.RouterGroup) {
|
||||
appgw.RegisterUserRoutes(apiV1Router)
|
||||
}
|
||||
@@ -16,6 +16,9 @@ func RegisterV1Routes(apiV1Router *gin.RouterGroup, apiGroup *gin.RouterGroup) {
|
||||
// 2. Admin routes
|
||||
RegisterAdminRoutes(apiV1Router)
|
||||
|
||||
// 3. Message gateway user bind/unbind
|
||||
RegisterMessageGatewayUserRoutes(apiV1Router)
|
||||
|
||||
// 3. Product domain routes: RegisterXxxRoutes(apiV1Router) — see skill new-api
|
||||
// 4. Scaffold sample only (optional demo under /api/v1/custom)
|
||||
RegisterCustomRoutes(apiV1Router)
|
||||
|
||||
Reference in New Issue
Block a user