feat: 代码生成

This commit is contained in:
Blizzard
2026-04-28 10:29:02 +08:00
parent 7e282b36d7
commit b343856b58
38 changed files with 2199 additions and 51 deletions
+4 -4
View File
@@ -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 {