mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
@@ -3,6 +3,7 @@ using Infrastructure;
|
||||
using Infrastructure.Helper;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.App.ViewModel;
|
||||
using OpenAuth.Mvc.Models;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
@@ -14,33 +15,38 @@ namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
_app = AutofacExt.GetFromFac<ModuleManagerApp>();
|
||||
}
|
||||
|
||||
|
||||
[Anonymous]
|
||||
public string GetModules(int parentId = 0)
|
||||
{
|
||||
return JsonHelper.Instance.Serialize(_app.LoadByParent(parentId));
|
||||
}
|
||||
|
||||
[Anonymous]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var user = SessionHelper.GetSessionUser<LoginUserVM>();
|
||||
return View(user.Modules);
|
||||
}
|
||||
|
||||
|
||||
[Anonymous]
|
||||
public ActionResult Main()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
[Anonymous]
|
||||
public ActionResult Git()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所有页面按钮控制分部视图
|
||||
/// </summary>
|
||||
/// <returns>ActionResult.</returns>
|
||||
[ChildActionOnly]
|
||||
[Anonymous]
|
||||
public ActionResult MenuHeader()
|
||||
{
|
||||
return View();
|
||||
|
Reference in New Issue
Block a user