chore(menu): 注释代码生成菜单种子数据

This commit is contained in:
dubai
2026-01-11 19:14:34 +08:00
parent a1210c1efd
commit dc0c83a620

View File

@@ -44,72 +44,72 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
}; };
entities.Add(system); entities.Add(system);
//代码生成 // //代码生成
MenuAggregateRoot code = new MenuAggregateRoot(_guidGenerator.Create(), Guid.Empty) // MenuAggregateRoot code = new MenuAggregateRoot(_guidGenerator.Create(), Guid.Empty)
{ // {
MenuName = "代码生成", // MenuName = "代码生成",
MenuType = MenuTypeEnum.Catalogue, // MenuType = MenuTypeEnum.Catalogue,
Router = "/code", // Router = "/code",
IsShow = true, // IsShow = true,
IsLink = false, // IsLink = false,
MenuIcon = "tabler:code", // MenuIcon = "tabler:code",
OrderNum = 91, // OrderNum = 91,
IsDeleted = false, // IsDeleted = false,
}; // };
entities.Add(code); // entities.Add(code);
//数据表管理 // //数据表管理
MenuAggregateRoot table = new MenuAggregateRoot(_guidGenerator.Create(), code.Id) // MenuAggregateRoot table = new MenuAggregateRoot(_guidGenerator.Create(), code.Id)
{ // {
MenuName = "数据表管理", // MenuName = "数据表管理",
PermissionCode = "code:table:list", // PermissionCode = "code:table:list",
MenuType = MenuTypeEnum.Menu, // MenuType = MenuTypeEnum.Menu,
Router = "table", // Router = "table",
IsShow = true, // IsShow = true,
IsLink = false, // IsLink = false,
IsCache = true, // IsCache = true,
Component = "code/table/index", // Component = "code/table/index",
MenuIcon = "tabler:table", // MenuIcon = "tabler:table",
OrderNum = 100, // OrderNum = 100,
IsDeleted = false // IsDeleted = false
}; // };
entities.Add(table); // entities.Add(table);
//
//字段管理 // //字段管理
MenuAggregateRoot field = new MenuAggregateRoot(_guidGenerator.Create(), code.Id) // MenuAggregateRoot field = new MenuAggregateRoot(_guidGenerator.Create(), code.Id)
{ // {
MenuName = "字段管理", // MenuName = "字段管理",
PermissionCode = "code:field:list", // PermissionCode = "code:field:list",
MenuType = MenuTypeEnum.Menu, // MenuType = MenuTypeEnum.Menu,
Router = "field", // Router = "field",
IsShow = true, // IsShow = true,
IsLink = false, // IsLink = false,
IsCache = true, // IsCache = true,
Component = "code/field/index", // Component = "code/field/index",
MenuIcon = "tabler:file-code", // MenuIcon = "tabler:file-code",
OrderNum = 99, // OrderNum = 99,
ParentId = code.Id, // ParentId = code.Id,
IsDeleted = false // IsDeleted = false
}; // };
entities.Add(field); // entities.Add(field);
//
//
//模板管理 // //模板管理
MenuAggregateRoot template = new MenuAggregateRoot(_guidGenerator.Create(), code.Id) // MenuAggregateRoot template = new MenuAggregateRoot(_guidGenerator.Create(), code.Id)
{ // {
MenuName = "模板管理", // MenuName = "模板管理",
PermissionCode = "code:template:list", // PermissionCode = "code:template:list",
MenuType = MenuTypeEnum.Menu, // MenuType = MenuTypeEnum.Menu,
Router = "template", // Router = "template",
IsShow = true, // IsShow = true,
IsLink = false, // IsLink = false,
IsCache = true, // IsCache = true,
Component = "code/template/index", // Component = "code/template/index",
MenuIcon = "tabler:template", // MenuIcon = "tabler:template",
OrderNum = 98, // OrderNum = 98,
IsDeleted = false // IsDeleted = false
}; // };
entities.Add(template); // entities.Add(template);
//系统监控 //系统监控