refactor: adjust project structure

This commit is contained in:
2024-11-14 01:15:55 +08:00
parent c219d81b89
commit 58232c403e
19 changed files with 316 additions and 128 deletions

View File

@ -11,7 +11,6 @@ var DB *gorm.DB
func InitDB() {
var err error
// "%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local"
dsn := fmt.Sprintf(
"%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local",
Conf.DB.User,