自动生成菜单,相应控制其方法加上DisplayName、Description特性
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -13,6 +14,7 @@ using Microsoft.AspNetCore.Http;
|
||||
namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
{
|
||||
[Area("AdminCP")]
|
||||
[DisplayName("后台权限")]
|
||||
public class PermissionController : AdminBaseController
|
||||
{
|
||||
#region 事件管理
|
||||
@@ -107,6 +109,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
#region 后台栏目管理
|
||||
//后台菜单列表
|
||||
[MyAuthorize( "viewlist", "adminmenu")]
|
||||
[DisplayName("后台栏目")]
|
||||
public IActionResult AdminMenuList()
|
||||
{
|
||||
IList<AdminMenu> list = AdminMenu.GetListTree(0, -1, false, true);
|
||||
|
||||
Reference in New Issue
Block a user