This commit is contained in:
Sense T
2024-04-03 17:05:12 +08:00
parent 94a126086e
commit 8a8ea59b71
53 changed files with 4905 additions and 1 deletions

10
database/database.go Normal file
View File

@@ -0,0 +1,10 @@
package database
import (
"gorm.io/driver/mysql"
"gorm.io/gorm"
)
func Connect(DSN string) (*gorm.DB, error) {
return gorm.Open(mysql.Open(DSN), &gorm.Config{})
}