style: 添加webfirst种子数据

This commit is contained in:
橙子
2023-09-26 00:38:10 +08:00
parent 0aa6443a20
commit 4e5bdf6847
6 changed files with 50 additions and 8 deletions

View File

@@ -21,6 +21,7 @@ namespace Yi.Furion.Core.Rbac.DataSeeds
public override List<MenuEntity> GetSeedData()
{
List<MenuEntity> entities = new List<MenuEntity>();
//系统管理
MenuEntity system = new MenuEntity()
{
@@ -37,6 +38,45 @@ namespace Yi.Furion.Core.Rbac.DataSeeds
};
entities.Add(system);
//WebFirst
MenuEntity webfirst = new MenuEntity()
{
Id = SnowflakeHelper.NextId,
MenuName = "WebFirst",
MenuType = MenuTypeEnum.Catalogue,
Router = "/webfirst",
IsShow = true,
IsLink = false,
MenuIcon = "build",
OrderNum = 91,
ParentId = 0,
IsDeleted = false
};
entities.Add(webfirst);
//数据表管理
MenuEntity table = new MenuEntity()
{
Id = SnowflakeHelper.NextId,
MenuName = "数据表管理",
PermissionCode = "webfirst:table:list",
MenuType = MenuTypeEnum.Menu,
Router = "table",
IsShow = true,
IsLink = false,
IsCache = true,
Component = "webfirst/table/index",
MenuIcon = "online",
OrderNum = 100,
ParentId = webfirst.Id,
IsDeleted = false
};
entities.Add(table);
//系统监控
MenuEntity monitoring = new MenuEntity()
{