package initialize

import (
	"context"

	"gorm.io/gorm"
	"kra/internal/data/model"
	"kra/internal/plugin/plugin-tool/utils"
)

func Menu(ctx context.Context, db *gorm.DB) {
	entities := []model.SysBaseMenu{
		{
			ParentID:  24,
			Path:      "anInfo",
			Name:      "anInfo",
			Hidden:    false,
			Component: "plugin/announcement/view/info.vue",
			Sort:      5,
			Title:     "公告管理",
			Icon:      "box",
		},
	}
	utils.RegisterMenus(db, entities...)
}
