From ea8dd2147848766d62e1a922096de67aa68e48bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 02:05:38 +0000 Subject: [PATCH] Add role management menu entry and update seed data Co-authored-by: xuzeyu91 <26290929+xuzeyu91@users.noreply.github.com> --- .../Common/DependencyInjection/InitExtensions.cs | 1 + src/AntSK/wwwroot/data/menu.json | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/AntSK.Domain/Common/DependencyInjection/InitExtensions.cs b/src/AntSK.Domain/Common/DependencyInjection/InitExtensions.cs index 7783614..555eab4 100644 --- a/src/AntSK.Domain/Common/DependencyInjection/InitExtensions.cs +++ b/src/AntSK.Domain/Common/DependencyInjection/InitExtensions.cs @@ -136,6 +136,7 @@ namespace AntSK.Domain.Common.DependencyInjection new Permissions { Id = Guid.NewGuid().ToString(), Name = "函数管理", Code = "plugins.funlist", Type = "Menu", Description = "函数管理权限" }, new Permissions { Id = Guid.NewGuid().ToString(), Name = "模型管理", Code = "modelmanager.modellist", Type = "Menu", Description = "模型管理权限" }, new Permissions { Id = Guid.NewGuid().ToString(), Name = "用户管理", Code = "setting.user", Type = "Menu", Description = "用户管理权限" }, + new Permissions { Id = Guid.NewGuid().ToString(), Name = "角色管理", Code = "setting.role", Type = "Menu", Description = "角色管理权限" }, new Permissions { Id = Guid.NewGuid().ToString(), Name = "聊天记录", Code = "setting.chathistory", Type = "Menu", Description = "聊天记录权限" }, new Permissions { Id = Guid.NewGuid().ToString(), Name = "删除向量表", Code = "setting.delkms", Type = "Menu", Description = "删除向量表权限" } }; diff --git a/src/AntSK/wwwroot/data/menu.json b/src/AntSK/wwwroot/data/menu.json index 1e8ae10..78a9b4a 100644 --- a/src/AntSK/wwwroot/data/menu.json +++ b/src/AntSK/wwwroot/data/menu.json @@ -59,6 +59,11 @@ "name": "用户管理", "key": "setting.user" }, + { + "path": "/setting/rolelist", + "name": "角色管理", + "key": "setting.role" + }, { "path": "/setting/chathistory", "name": "聊天记录",