自动生成菜单,相应控制其方法加上DisplayName、Description特性

This commit is contained in:
xxred
2018-11-07 17:15:42 +08:00
parent 787a76798f
commit 2ab7ecc9b0
23 changed files with 557 additions and 3 deletions
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
@@ -12,6 +13,8 @@ using Microsoft.AspNetCore.Http;
namespace COMCMS.Web.Areas.AdminCP.Controllers
{
[DisplayName("文章系统")]
[Description("文章系统管理,包括文章、文章栏目")]
public class ArticleController : AdminBaseController
{
#region 文章栏目
@@ -20,6 +23,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
/// </summary>
/// <returns></returns>
[MyAuthorize( "viewlist", "articlecategory")]
[DisplayName("文章栏目")]
public IActionResult ArticleCategoryList()
{
IList<ArticleCategory> list = ArticleCategory.GetListTree(0, -1, false, true);
@@ -189,6 +193,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
/// </summary>
/// <returns></returns>
[MyAuthorize("viewlist", "article")]
[DisplayName("文章")]
public IActionResult ArticleList()
{
//获取上级栏目