🎨 清理多余文件,修改项目model
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
//go:build legacy_plugin_ast
|
||||
// +build legacy_plugin_ast
|
||||
|
||||
package ast
|
||||
|
||||
import (
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||||
"git.echol.cn/loser/Go-Web-Template/server/global"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
@@ -25,7 +28,7 @@ func TestPluginInitializeGorm_Injection(t *testing.T) {
|
||||
fields: fields{
|
||||
Type: TypePluginInitializeGorm,
|
||||
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"),
|
||||
ImportPath: `"github.com/flipped-aurora/gin-vue-admin/server/plugin/gva/model"`,
|
||||
ImportPath: `"git.echol.cn/loser/Go-Web-Template/server/plugin/gva/model"`,
|
||||
StructName: "User",
|
||||
PackageName: "model",
|
||||
IsNew: false,
|
||||
@@ -36,7 +39,7 @@ func TestPluginInitializeGorm_Injection(t *testing.T) {
|
||||
fields: fields{
|
||||
Type: TypePluginInitializeGorm,
|
||||
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"),
|
||||
ImportPath: `"github.com/flipped-aurora/gin-vue-admin/server/plugin/gva/model"`,
|
||||
ImportPath: `"git.echol.cn/loser/Go-Web-Template/server/plugin/gva/model"`,
|
||||
StructName: "User",
|
||||
PackageName: "model",
|
||||
IsNew: true,
|
||||
@@ -47,7 +50,7 @@ func TestPluginInitializeGorm_Injection(t *testing.T) {
|
||||
fields: fields{
|
||||
Type: TypePluginInitializeGorm,
|
||||
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"),
|
||||
ImportPath: `"github.com/flipped-aurora/gin-vue-admin/server/plugin/gva/model"`,
|
||||
ImportPath: `"git.echol.cn/loser/Go-Web-Template/server/plugin/gva/model"`,
|
||||
StructName: "SysUser",
|
||||
PackageName: "model",
|
||||
IsNew: true,
|
||||
@@ -96,7 +99,7 @@ func TestPluginInitializeGorm_Rollback(t *testing.T) {
|
||||
fields: fields{
|
||||
Type: TypePluginInitializeGorm,
|
||||
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"),
|
||||
ImportPath: `"github.com/flipped-aurora/gin-vue-admin/server/plugin/gva/model"`,
|
||||
ImportPath: `"git.echol.cn/loser/Go-Web-Template/server/plugin/gva/model"`,
|
||||
StructName: "User",
|
||||
PackageName: "model",
|
||||
IsNew: false,
|
||||
@@ -107,7 +110,7 @@ func TestPluginInitializeGorm_Rollback(t *testing.T) {
|
||||
fields: fields{
|
||||
Type: TypePluginInitializeGorm,
|
||||
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "initialize", "gorm.go"),
|
||||
ImportPath: `"github.com/flipped-aurora/gin-vue-admin/server/plugin/gva/model"`,
|
||||
ImportPath: `"git.echol.cn/loser/Go-Web-Template/server/plugin/gva/model"`,
|
||||
StructName: "User",
|
||||
PackageName: "model",
|
||||
IsNew: true,
|
||||
|
||||
Reference in New Issue
Block a user