After Finish User Register and Login Service via MVC arch

This commit is contained in:
2025-07-19 23:55:25 +08:00
parent 56c625ee6b
commit edd693200c
12 changed files with 168 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
package config
import (
"GinWithGormTutorial/global"
"GinTutorial/global"
"fmt"
"log"
"time"
@@ -11,7 +11,7 @@ import (
)
func buildDSN(user, password, host, port, db, charset string) string {
template := "%s:%s@tcp(%s:%s)/%s?charset=%s"
template := "%s:%s@tcp(%s:%s)/%s?charset=%s&parseTime=true"
return fmt.Sprintf(template, user, password, host, port, db, charset)
}