feat: adjust openapi endpoint

This commit is contained in:
engigu
2026-03-06 17:24:39 +08:00
parent a04d6ab537
commit c251fa452d
11 changed files with 343 additions and 252 deletions
+4 -3
View File
@@ -12,7 +12,7 @@ import (
// @title Baihu Panel API
// @version 1.0
// @description Baihu Panel API Server documentation.
// @description Baihu Panel OpenAPI Server documentation.
// @termsOfService http://swagger.io/terms/
// @contact.name API Support
@@ -23,12 +23,13 @@ import (
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:8052
// @BasePath /api/v1
// @BasePath /open2api/v1
// @query.collection.format multi
// @securityDefinitions.apikey ApiKeyAuth
// @securityDefinitions.apikey BearerAuth
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and the API token.
func printHelp() {
fmt.Println("Usage: baihu <command> [arguments]")