修复 curve 接口的一些问题

This commit is contained in:
eafonyang
2026-06-04 19:39:08 +08:00
parent c4cd8b6f5d
commit 4f31cd563f
12 changed files with 202 additions and 82 deletions
+5 -4
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"time"
_ "github.com/go-sql-driver/mysql"
"github.com/go-sql-driver/mysql"
_ "github.com/go-sql-driver/mysql"
"github.com/luxsin/app-api/internal/config"
)
@@ -19,9 +19,10 @@ func Open(cfg config.DatabaseConfig) (*sql.DB, error) {
Addr: fmt.Sprintf("%s:%d", cfg.Host, cfg.Port),
DBName: cfg.Name,
Params: map[string]string{
"charset": "utf8mb4",
"parseTime": "True",
"loc": "Local",
"charset": "utf8mb4",
"parseTime": "True",
"loc": "Local",
"allowNativePasswords": "true",
},
}