fusenapi/generator/gorm_gen_test.go
2023-06-21 11:29:09 +08:00

17 lines
305 B
Go

package main
import (
"testing"
_ "github.com/go-sql-driver/mysql"
)
func TestXMain(t *testing.T) {
testGenDir = "../" + testGenDir
GenAllModels(testGenDir, TableNameComment{
Name: "FsFont",
Comment: "测试",
})
// Now you can use the generated GORM model to interact with the database
}