🎨 清理多余文件,修改项目model

This commit is contained in:
2026-04-10 15:38:58 +08:00
parent 6a80fcc388
commit f106960342
221 changed files with 686 additions and 2801 deletions

View File

@@ -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 TestPluginGenModel_Injection(t *testing.T) {
fields: fields{
Type: TypePluginGen,
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.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"`,
PackageName: "model",
StructName: "User",
IsNew: false,
@@ -36,7 +39,7 @@ func TestPluginGenModel_Injection(t *testing.T) {
fields: fields{
Type: TypePluginGen,
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.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"`,
PackageName: "model",
StructName: "User",
IsNew: true,
@@ -85,7 +88,7 @@ func TestPluginGenModel_Rollback(t *testing.T) {
fields: fields{
Type: TypePluginGen,
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.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"`,
PackageName: "model",
StructName: "User",
IsNew: false,
@@ -96,7 +99,7 @@ func TestPluginGenModel_Rollback(t *testing.T) {
fields: fields{
Type: TypePluginGen,
Path: filepath.Join(global.GVA_CONFIG.AutoCode.Root, global.GVA_CONFIG.AutoCode.Server, "plugin", "gva", "gen", "main.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"`,
PackageName: "model",
StructName: "User",
IsNew: true,