mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-24 05:16:56 +00:00
* feat: 调整AI工作模式,更符合harness基准 * feat: 添加BusinessDB字段到PluginInitializeGorm结构体,并增加相关测试用例 * [middleware/jwt.go]: fix #2192 issues bug * docs: add auto plugin design spec * chore: ignore worktrees directory * feat: 调整代码辅助能力至插件 * feat: 添加警告条组件,提示授权用户访问限制 * fix: 修正商业用途版权声明链接 * feat: 调整agent.md 更加节省token * fix: 修改casbin版本为v3 * feat: 更新JSONMap和JSONSlice类型,优化GORM数据类型处理 * feat: 添加数据库就绪通知机制,优化插件注册流程 * feat: 重构API路径和描述,优化代码生成器和模板配置分组 * feat: 优化 person 页面的 css 作用域限制 * feat: 更新 vite 至 vite8 * 新增:MCP工具为指定URL的角色ID授权 * fix: 增加文件名合法性检查,拒绝包含非法字符的文件写入 * chore: 更新CI配置,升级Node.js和Go版本,调整checkout和setup动作版本 * feat: 为数据库连接增加最大复用时间配置 * feat: 为各数据库连接配置增加最大连接生命周期设置 * feat: 更新插件注册逻辑并优化API和菜单组件的标签显示 * feat: 更新版本号至v2.9.2并添加新插件路径信息 --------- Co-authored-by: taincheng <zhangtc@gmail.com> Co-authored-by: Azir-11 <2075125282@qq.com> Co-authored-by: lanxi <1220lanxi@gmail.com>
129 lines
3.4 KiB
Go
129 lines
3.4 KiB
Go
package initialize
|
|
|
|
import (
|
|
"context"
|
|
|
|
model "github.com/flipped-aurora/gin-vue-admin/server/model/system"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/plugin/plugin-tool/utils"
|
|
)
|
|
|
|
func Menu(ctx context.Context) {
|
|
_ = ctx
|
|
entities := []model.SysBaseMenu{
|
|
{
|
|
ParentId: 0,
|
|
Path: "programmingAssistant",
|
|
Name: "AutoRoot",
|
|
Hidden: false,
|
|
Component: "view/routerHolder.vue",
|
|
Sort: 91,
|
|
Meta: model.Meta{Title: "编程辅助", Icon: "cpu"},
|
|
},
|
|
{
|
|
Path: "autoCode",
|
|
Name: "AutoCode",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/autoCode/index.vue",
|
|
Sort: 1,
|
|
Meta: model.Meta{Title: "自动代码", Icon: "magic-stick"},
|
|
},
|
|
{
|
|
Path: "autoPkg",
|
|
Name: "AutoPkg",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/autoPkg/autoPkg.vue",
|
|
Sort: 2,
|
|
Meta: model.Meta{Title: "自动化包", Icon: "files"},
|
|
},
|
|
{
|
|
Path: "formCreate",
|
|
Name: "formCreate",
|
|
Hidden: false,
|
|
Component: "view/systemTools/formCreate/index.vue",
|
|
Sort: 3,
|
|
Meta: model.Meta{Title: "表单生成器", Icon: "magic-stick", KeepAlive: true},
|
|
},
|
|
{
|
|
Path: "aiWorkflow",
|
|
Name: "AIWorkflow",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/aiWorkflow/index.vue",
|
|
Sort: 4,
|
|
Meta: model.Meta{Title: "AI 工作流", Icon: "memo"},
|
|
},
|
|
{
|
|
Path: "autoCodeEdit/:id",
|
|
Name: "autoCodeEdit",
|
|
Hidden: true,
|
|
Component: "view/systemTools/autoCode/index.vue",
|
|
Sort: 0,
|
|
Meta: model.Meta{Title: "自动化代码-${id}", Icon: "magic-stick"},
|
|
},
|
|
{
|
|
Path: "exportTemplate",
|
|
Name: "exportTemplate",
|
|
Hidden: false,
|
|
Component: "view/systemTools/exportTemplate/exportTemplate.vue",
|
|
Sort: 5,
|
|
Meta: model.Meta{Title: "导出模板", Icon: "reading"},
|
|
},
|
|
{
|
|
Path: "mcp",
|
|
Name: "MCP",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/autoCode/mcp.vue",
|
|
Sort: 6,
|
|
Meta: model.Meta{Title: "MCP 工具", Icon: "monitor"},
|
|
},
|
|
{
|
|
Path: "mcpTest",
|
|
Name: "MCPTest",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/autoCode/mcpTest.vue",
|
|
Sort: 5,
|
|
Meta: model.Meta{Title: "MCP 测试", Icon: "connection"},
|
|
},
|
|
{
|
|
Path: "installPlugin",
|
|
Name: "AutoInstallPlugin",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/installPlugin/index.vue",
|
|
Sort: 6,
|
|
Meta: model.Meta{Title: "插件安装", Icon: "upload-filled"},
|
|
},
|
|
{
|
|
Path: "pubPlug",
|
|
Name: "PubPlug",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/pubPlug/pubPlug.vue",
|
|
Sort: 7,
|
|
Meta: model.Meta{Title: "插件打包", Icon: "box"},
|
|
},
|
|
{
|
|
Path: "skills",
|
|
Name: "Skills",
|
|
Hidden: false,
|
|
Component: "plugin/auto/view/skills/index.vue",
|
|
Sort: 8,
|
|
Meta: model.Meta{Title: "技能管理", Icon: "edit-pen"},
|
|
},
|
|
{
|
|
Path: "picture",
|
|
Name: "picture",
|
|
Hidden: false,
|
|
Component: "view/systemTools/autoCode/picture.vue",
|
|
Sort: 10,
|
|
Meta: model.Meta{Title: "AI页面绘制", Icon: "picture-filled"},
|
|
},
|
|
{
|
|
Path: "autoCodeAdmin",
|
|
Name: "AutoCodeAdmin",
|
|
Hidden: true,
|
|
Component: "plugin/auto/view/autoCodeAdmin/index.vue",
|
|
Sort: 9,
|
|
Meta: model.Meta{Title: "自动代码管理", Icon: "setting"},
|
|
},
|
|
}
|
|
utils.RegisterMenus(entities...)
|
|
}
|