feat: enhance redis and production IA

This commit is contained in:
Logan.Li committed 2026-07-07 10:39:33 +08:00
1 parent 644981eef4
commit 58bbc394e9
76 files changed
+1702 -721

No files matched your search

+5 -5
View File
@@ -47,11 +47,11 @@ func Setup(r *gin.Engine) {
auth.GET("/instances/:id", handler.GetInstance)
auth.GET("/instances/:id/databases", handler.ListDatabases)
auth.GET("/instances/:id/databases/:db/tables", handler.ListTables)
auth.POST("/instances/:id/test-connection", handler.TestConnection)
auth.POST("/instances/test-connection", handler.TestNewConnection)
auth.GET("/instances/:id/metrics", handler.InstanceMetrics)
auth.POST("/instances/:id/test-connection", handler.TestConnection)
auth.POST("/instances/test-connection", handler.TestNewConnection)
auth.GET("/instances/:id/metrics", handler.InstanceMetrics)
// Instance Detail (databases/tables/schema/processlist/status/users)
// Instance Detail (databases/tables/schema/processlist/status/users)
auth.GET("/instances/:id/detail/databases", handler.DetailListDatabases)
auth.GET("/instances/:id/detail/tables", handler.DetailListTables)
auth.GET("/instances/:id/detail/db-schema", handler.DetailDbSchema)
@@ -97,6 +97,7 @@ func Setup(r *gin.Engine) {
auth.GET("/redis/:id/clients", handler.RedisClients)
auth.POST("/redis/:id/command", handler.RedisExecuteCommand)
auth.POST("/redis/:id/keys", handler.RedisCreateKey)
auth.PUT("/redis/:id/keys/:key", handler.RedisUpdateKey)
auth.DELETE("/redis/:id/keys/:key", handler.RedisDeleteKey)
// Users (admin only)
@@ -162,7 +163,6 @@ func Setup(r *gin.Engine) {
queryGroup.POST("/query/export", handler.ExportQueryCSV)
}
// SQL Assistant
auth.POST("/sql-assistant/format", handler.SQLFormat)
auth.POST("/sql-assistant/analyze", handler.SQLAnalyze)