feat: swagger
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user