48 lines
947 B
Go
48 lines
947 B
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) {
|
|
entities := []model.SysBaseMenu{
|
|
{
|
|
Hidden: false,
|
|
Path: "changeMonitor",
|
|
Name: "changeMonitor",
|
|
Component: "view/routerHolder.vue",
|
|
Sort: 99,
|
|
Meta: model.Meta{
|
|
Title: "变更监控",
|
|
Icon: "camera",
|
|
},
|
|
},
|
|
{
|
|
Hidden: false,
|
|
Path: "MC",
|
|
Name: "MC",
|
|
Component: "plugin/monitor/view/monitorConfig.vue",
|
|
Sort: 1,
|
|
Meta: model.Meta{
|
|
Title: "监控配置",
|
|
Icon: "monitor",
|
|
},
|
|
},
|
|
{
|
|
Hidden: false,
|
|
Path: "CL",
|
|
Name: "CL",
|
|
Component: "plugin/monitor/view/changeLog.vue",
|
|
Sort: 2,
|
|
Meta: model.Meta{
|
|
Title: "变更日志",
|
|
Icon: "list",
|
|
},
|
|
},
|
|
}
|
|
utils.RegisterMenus(entities...)
|
|
}
|