feat: swagger

This commit is contained in:
Blizzard
2025-09-16 14:27:32 +08:00
parent 79c19bc47c
commit 237ac665e6
19 changed files with 4690 additions and 91 deletions
+9 -1
View File
@@ -3,12 +3,20 @@ package main
import (
"context"
"database/sql"
"go.uber.org/zap"
"sundynix-go/core"
"sundynix-go/global"
"sundynix-go/initialize"
"go.uber.org/zap"
)
// @title RBAC Swagger API接口文档
// @version v1.0.0
// @description 使用gin+gorm进行极速开发的全栈开发基础平台
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @BasePath /
func main() {
//初始化viper
global.Viper = core.Viper()