更新开发者平台:代理商管理、版本管理、UI优化

This commit is contained in:
Admin
2026-04-29 15:19:17 +08:00
parent afe67d704e
commit 5c63882e71
139 changed files with 26533 additions and 365 deletions
+8
View File
@@ -4,6 +4,7 @@ import (
"time"
"verification-platform-backend/internal/middleware"
"verification-platform-backend/internal/router/agent"
"verification-platform-backend/internal/router/app"
"verification-platform-backend/internal/router/developer"
"verification-platform-backend/internal/router/extension"
@@ -36,6 +37,13 @@ func SetupRoutes(r *gin.Engine) {
developer.SetupRoutesWithoutPackage(devGroup)
}
agentGroup := api.Group("/agent")
{
agentGroup.Use(middleware.JWT())
agentGroup.Use(middleware.AgentAuth())
agent.SetupAgentRoutes(agentGroup)
}
appGroup := api.Group("/app/:appKey")
{
appGroup.Use(app.AppCryptoMiddleware())