mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
采用全新的数据库架构
This commit is contained in:
@@ -21,9 +21,9 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
public ContentResult Main()
|
||||
public ActionResult Main()
|
||||
{
|
||||
return Content("欢迎使用基于DDD的权限管理系统");
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Login()
|
||||
|
18
OpenAuth.Mvc/Controllers/ModuleManagerController.cs
Normal file
18
OpenAuth.Mvc/Controllers/ModuleManagerController.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
public class ModuleManagerController : BaseController
|
||||
{
|
||||
//
|
||||
// GET: /Modu/
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
33
OpenAuth.Mvc/Controllers/OrgManagerController.cs
Normal file
33
OpenAuth.Mvc/Controllers/OrgManagerController.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
public class OrgManagerController : BaseController
|
||||
{
|
||||
private OrgManagerApp _orgApp;
|
||||
|
||||
public OrgManagerController()
|
||||
{
|
||||
_orgApp = (OrgManagerApp) DependencyResolver.Current.GetService(typeof (OrgManagerApp));
|
||||
}
|
||||
//
|
||||
// GET: /OrgManager/
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
public string LoadOrg()
|
||||
{
|
||||
var orgs = _orgApp.GetAll();
|
||||
return JsonHelper.Instance.Serialize(orgs);
|
||||
}
|
||||
}
|
||||
}
|
18
OpenAuth.Mvc/Controllers/UserManagerController.cs
Normal file
18
OpenAuth.Mvc/Controllers/UserManagerController.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
public class UserManagerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /UserManager/
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user