wangpengfei
2023-08-25 25c573d55986e02cf5f70cc3868e2b94a4be98e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package ast
 
import (
    "srm/global"
    "srm/model/example"
    "testing"
)
 
const A = 123
 
func TestAddRegisterTablesAst(t *testing.T) {
    AddRegisterTablesAst("D:\\gin-vue-admin\\server\\utils\\ast_test.go", "Register", "test", "testDB", "testModel")
}
 
func Register() {
    test := global.GetGlobalDBByDBName("test")
    test.AutoMigrate(example.ExaFile{})
}