采用全新的数据库架构

This commit is contained in:
yubaolee
2015-10-26 21:58:12 +08:00
parent 366d3a5351
commit 13d44f28b6
91 changed files with 21208 additions and 9430 deletions

View File

@@ -21,9 +21,9 @@ namespace OpenAuth.Mvc.Controllers
return View();
}
public ContentResult Main()
public ActionResult Main()
{
return Content("欢迎使用基于DDD的权限管理系统");
return View();
}
public ActionResult Login()

View 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();
}
}
}

View 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);
}
}
}

View 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();
}
}
}