mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
完成首页按登录账号加载
This commit is contained in:
@@ -62,24 +62,6 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return JsonHelper.Instance.Serialize(orgs);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载首页导航模块
|
||||
/// </summary>
|
||||
/// <returns>System.String.</returns>
|
||||
public string LoadForNav()
|
||||
{
|
||||
var orgs = _app.LoadForNav();
|
||||
//添加根节点
|
||||
orgs.Add(new Module
|
||||
{
|
||||
Id = 0,
|
||||
ParentId = -1,
|
||||
Name = "根节点",
|
||||
CascadeId = "0"
|
||||
});
|
||||
return JsonHelper.Instance.Serialize(orgs);
|
||||
}
|
||||
|
||||
public string LoadForUser(int userId)
|
||||
{
|
||||
var orgs = _app.LoadForUser(userId);
|
||||
|
Reference in New Issue
Block a user