diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/OrganizationManage/Controllers/UserController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/OrganizationManage/Controllers/UserController.cs index 01ae861f..a8a93ecf 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/OrganizationManage/Controllers/UserController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/OrganizationManage/Controllers/UserController.cs @@ -86,6 +86,7 @@ public async Task GetPageListJson(UserListParam param, Pagination } [HttpGet] + [AuthorizeFilter("organization:user:view")] public async Task GetFormJson(long id) { TData obj = await userBLL.GetEntity(id); @@ -93,6 +94,7 @@ public async Task GetFormJson(long id) } [HttpGet] + [AuthorizeFilter("organization:user:view")] public async Task GetUserAuthorizeJson() { TData obj = new TData(); diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobController.cs index da18e52b..47e91bfe 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobController.cs @@ -50,6 +50,7 @@ public async Task GetPageListJson(AutoJobListParam param, Paginat } [HttpGet] + [AuthorizeFilter("system:autojob:view")] public async Task GetFormJson(long id) { TData obj = await autoJobBLL.GetEntity(id); diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobLogController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobLogController.cs index bdb8ed94..fb87b83c 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobLogController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/AutoJobLogController.cs @@ -39,12 +39,14 @@ public async Task GetListJson(AutoJobLogListParam param) TData> obj = await autoJobLogBLL.GetList(param); return Json(obj); } + [HttpGet] public async Task GetPageListJson(AutoJobLogListParam param, Pagination pagination) { TData> obj = await autoJobLogBLL.GetPageList(param, pagination); return Json(obj); } + [HttpGet] public async Task GetFormJson(long id) { @@ -60,6 +62,7 @@ public async Task SaveFormJson(AutoJobLogEntity entity) TData obj = await autoJobLogBLL.SaveForm(entity); return Json(obj); } + [HttpPost] public async Task DeleteFormJson(string ids) { diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/DatabaseController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/DatabaseController.cs index 68b60956..71bd2cf9 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/DatabaseController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/DatabaseController.cs @@ -41,6 +41,7 @@ public async Task GetTableListJson(string tableName) TData> obj = await databaseTableBLL.GetTableList(tableName); return Json(obj); } + [HttpGet] [AuthorizeFilter("system:datatable:search")] public async Task GetTablePageListJson(string tableName, Pagination pagination) @@ -48,6 +49,7 @@ public async Task GetTablePageListJson(string tableName, Paginati TData> obj = await databaseTableBLL.GetTablePageList(tableName, pagination); return Json(obj); } + [HttpGet] public async Task GetTableFieldListJson(string tableName) { diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/MenuController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/MenuController.cs index ab55f3ba..3e6ccb36 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/MenuController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/MenuController.cs @@ -56,6 +56,7 @@ public async Task GetMenuTreeListJson(MenuListParam param) } [HttpGet] + [AuthorizeFilter("system:menu:view")] public async Task GetFormJson(long id) { TData obj = await menuBLL.GetEntity(id); diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/RoleController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/RoleController.cs index 390931db..e4e5dcf3 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/RoleController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/SystemManage/Controllers/RoleController.cs @@ -46,6 +46,7 @@ public async Task GetPageListJson(RoleListParam param, Pagination } [HttpGet] + [AuthorizeFilter("system:role:view")] public async Task GetFormJson(long id) { TData obj = await roleBLL.GetEntity(id); diff --git a/YiSha.Web/YiSha.Admin.Web/Areas/ToolManage/Controllers/ServerController.cs b/YiSha.Web/YiSha.Admin.Web/Areas/ToolManage/Controllers/ServerController.cs index 1ca5a1f4..dc0bbbef 100644 --- a/YiSha.Web/YiSha.Admin.Web/Areas/ToolManage/Controllers/ServerController.cs +++ b/YiSha.Web/YiSha.Admin.Web/Areas/ToolManage/Controllers/ServerController.cs @@ -16,6 +16,7 @@ namespace YiSha.Admin.Web.Areas.ToolManage.Controllers public class ServerController : BaseController { #region 视图功能 + [AuthorizeFilter("tool:server:view")] public IActionResult ServerIndex() { return View(); @@ -24,6 +25,7 @@ public IActionResult ServerIndex() #region 获取数据 [HttpGet] + [AuthorizeFilter("tool:server:view")] public IActionResult GetServerJson() { TData obj = new TData();