fix: #1918 在包含delete_at的情况下,数据源自动过滤软删除数据

This commit is contained in:
pixelmaxQM
2024-10-31 20:10:06 +08:00
parent 3452eafe4f
commit 41ba7ad6a5
6 changed files with 46 additions and 21 deletions

View File

@@ -131,7 +131,13 @@ func (s *autoCodePackage) All(ctx context.Context) (entities []model.SysAutoCode
}
for i := 0; i < len(serverDir); i++ {
if serverDir[i].IsDir() {
serverPackage := model.SysAutoCodePackage{PackageName: serverDir[i].Name(), Template: "package", Label: serverDir[i].Name() + "包", Desc: "系统自动读取" + serverDir[i].Name() + "包"}
serverPackage := model.SysAutoCodePackage{
PackageName: serverDir[i].Name(),
Template: "package",
Label: serverDir[i].Name() + "包",
Desc: "系统自动读取" + serverDir[i].Name() + "包",
Module: global.GVA_CONFIG.AutoCode.Module,
}
server = append(server, serverPackage)
}
}
@@ -161,7 +167,13 @@ func (s *autoCodePackage) All(ctx context.Context) (entities []model.SysAutoCode
if len(dirNameMap) != 0 {
continue
}
pluginPackage := model.SysAutoCodePackage{PackageName: pluginDir[i].Name(), Template: "plugin", Label: pluginDir[i].Name() + "插件", Desc: "系统自动读取" + pluginDir[i].Name() + "插件使用前请确认是否为v2版本插件"}
pluginPackage := model.SysAutoCodePackage{
PackageName: pluginDir[i].Name(),
Template: "plugin",
Label: pluginDir[i].Name() + "插件",
Desc: "系统自动读取" + pluginDir[i].Name() + "插件使用前请确认是否为v2版本插件",
Module: global.GVA_CONFIG.AutoCode.Module,
}
plugin = append(plugin, pluginPackage)
}
}