This commit is contained in:
vipg
2025-10-10 16:48:04 +08:00
parent 7c93222bd3
commit e777e506ea
8 changed files with 13 additions and 152 deletions

View File

@@ -33,6 +33,9 @@ var db *sql.DB
func main() {
// 初始化Gin引擎
fmt.Println("[主程序] 初始化Gin引擎")
gin.SetMode(gin.ReleaseMode)
r := gin.Default()
// 从环境变量获取数据库配置