sync with OpenAuth.Core

This commit is contained in:
yubaolee
2020-12-27 00:00:28 +08:00
parent 368eae8d63
commit 20a717b2e6
19 changed files with 451 additions and 199 deletions

View File

@@ -41,8 +41,10 @@ namespace OpenAuth.WebApi.Controllers
return result;
}
//添加或修改
[HttpPost]
/// <summary>
/// 添加角色如果当前登录用户不是System则直接把新角色分配给当前登录用户
/// </summary>
[HttpPost]
public Response<RoleView> Add(RoleView obj)
{
var result = new Response<RoleView>();
@@ -60,8 +62,12 @@ namespace OpenAuth.WebApi.Controllers
return result;
}
//添加或修改
/// <summary>
/// 更新角色属性
/// </summary>
/// <param name="obj"></param>
/// <returns></returns>
[HttpPost]
public Response Update(RoleView obj)
{