feat: 添加通知模块的 API 处理器和路由配置
This commit is contained in:
@@ -226,7 +226,8 @@ func Setup(db *gorm.DB, yunAPIClient *service.YunAPIClient, cfg *config.Config)
|
||||
aiHandler.RegisterRoutes(protected)
|
||||
|
||||
// Feature: notification-center - Register notification routes
|
||||
notificationHandler.RegisterRoutes(protected)
|
||||
notificationHandler.RegisterUserRoutes(protected)
|
||||
notificationHandler.RegisterAdminRoutes(v1)
|
||||
|
||||
// Register report routes
|
||||
protected.GET("/reports/summary", reportHandler.GetTransactionSummary)
|
||||
@@ -520,7 +521,8 @@ func SetupWithRedis(db *gorm.DB, yunAPIClient *service.YunAPIClient, redisClient
|
||||
v1.POST("/app-lock/password/change", appLockHandler.ChangePassword)
|
||||
|
||||
// Register notification routes
|
||||
notificationHandler.RegisterRoutes(protected)
|
||||
notificationHandler.RegisterUserRoutes(protected)
|
||||
notificationHandler.RegisterAdminRoutes(v1)
|
||||
}
|
||||
|
||||
return r, syncScheduler
|
||||
|
||||
Reference in New Issue
Block a user