feat: 新增API Key认证支持,优化Swagger文档安全配置

This commit is contained in:
wizardchen
2025-12-22 14:36:29 +08:00
committed by lyingbug
parent 86347d4c16
commit ac21f81dda
20 changed files with 1459 additions and 81 deletions
+6 -1
View File
@@ -15,7 +15,12 @@
// @securityDefinitions.apikey Bearer
// @in header
// @name Authorization
// @description 输入 Bearer {token} 格式的 JWT 令牌
// @description 用户登录认证:输入 Bearer {token} 格式的 JWT 令牌
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name X-API-Key
// @description 租户身份认证:输入 sk- 开头的 API Key
package main
import (