feat: 代码生成
This commit is contained in:
@@ -13,9 +13,7 @@ import (
|
||||
// @title RBAC Swagger API接口文档
|
||||
// @version v1.0.0
|
||||
// @description 使用gin+gorm进行极速开发的全栈开发基础平台
|
||||
// @securityDefinitions.apikey ApiKeyAuth
|
||||
// @in header
|
||||
// @name Authorization
|
||||
// @securityDefinitions.basic BasicAuth
|
||||
// @BasePath /
|
||||
func main() {
|
||||
//初始化viper
|
||||
@@ -28,7 +26,9 @@ func main() {
|
||||
global.DB = initialize.Gorm()
|
||||
//redis连接
|
||||
initialize.Redis()
|
||||
global.Redis.Set(context.Background(), "test", 0, -1)
|
||||
if global.Redis != nil {
|
||||
global.Redis.Set(context.Background(), "test", 0, -1)
|
||||
}
|
||||
|
||||
//迁移数据库
|
||||
if global.DB != nil {
|
||||
|
||||
Reference in New Issue
Block a user