feat(user): 添加 GORM 代码生成工具并更新数据库配置

- 在项目中引入 GORM 相关依赖
- 添加 GORM代码生成工具 gen.go
- 更新 MySQL 数据库配置
- 新增 .env 文件到 .gitignore
This commit is contained in:
2025-01-17 17:54:00 +08:00
parent d696206dc7
commit e7ff1dc87d
10 changed files with 404 additions and 10 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ registry:
password: ""
mysql:
dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local"
dsn: "%s:%s@tcp(%s:3306)/user?charset=utf8mb4&parseTime=True&loc=Local"
redis:
address: "127.0.0.1:6379"