mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 10:08:04 +08:00
调整组织类[Org]为[SysOrg]防止命名空间冲突
This commit is contained in:
@@ -34,11 +34,11 @@ namespace OpenAuth.Mvc.Controllers
|
||||
|
||||
//添加组织提交
|
||||
[HttpPost]
|
||||
public string Add(Org org)
|
||||
public string Add(SysOrg sysOrg)
|
||||
{
|
||||
try
|
||||
{
|
||||
_orgApp.Add(org);
|
||||
_orgApp.Add(sysOrg);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -50,11 +50,11 @@ namespace OpenAuth.Mvc.Controllers
|
||||
|
||||
//编辑
|
||||
[HttpPost]
|
||||
public string Update(Org org)
|
||||
public string Update(SysOrg sysOrg)
|
||||
{
|
||||
try
|
||||
{
|
||||
_orgApp.Update(org);
|
||||
_orgApp.Update(sysOrg);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@@ -118,7 +118,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
/// </summary>
|
||||
public string GetOrgs()
|
||||
{
|
||||
var resp = new Response<List<Org>>();
|
||||
var resp = new Response<List<SysOrg>>();
|
||||
try
|
||||
{
|
||||
resp.Result = _authStrategyContext.Orgs;
|
||||
|
Reference in New Issue
Block a user