restructure

This commit is contained in:
yanghao05
2023-04-20 12:11:34 +08:00
parent 6757e00d73
commit 5b8eca5d87
120 changed files with 546 additions and 7303 deletions

11
utils/db/db.go Normal file
View File

@@ -0,0 +1,11 @@
package db
import (
"fmt"
"gorm.io/gorm"
)
func TruncateTable(db *gorm.DB, table string) {
db.Exec(fmt.Sprintf("TRUNCATE TABLE %s", table))
}