diff --git a/FAuth/Controllers/api/AppController.cs b/FAuth/Controllers/api/AppController.cs index 4589448..a3e5c14 100644 --- a/FAuth/Controllers/api/AppController.cs +++ b/FAuth/Controllers/api/AppController.cs @@ -45,6 +45,11 @@ namespace FAuth.Controllers.api return newApp; } + /// + /// 删除一个应用 + /// + /// 应用名称 + /// 删除结果 [HttpPost] public bool RemoveApp(string appName) { if(appName.IsNullOrEmpty()) { diff --git a/FAuth/Controllers/api/RoleController.cs b/FAuth/Controllers/api/RoleController.cs index e5d2111..90de864 100644 --- a/FAuth/Controllers/api/RoleController.cs +++ b/FAuth/Controllers/api/RoleController.cs @@ -51,7 +51,7 @@ namespace FAuth.Controllers.api /// [HttpPost] [ProducesResponseType(typeof(Roles),200)] - public Roles GetApps(string roleName) { + public Roles GetRoles(string roleName) { var qu = this.Db.Roles.Where(m => m.Name == roleName); if(qu.Any()) { return qu.First(); diff --git a/FAuth/Controllers/api/RoleGroupController.cs b/FAuth/Controllers/api/RoleGroupController.cs index e15703f..0f3ff67 100644 --- a/FAuth/Controllers/api/RoleGroupController.cs +++ b/FAuth/Controllers/api/RoleGroupController.cs @@ -25,7 +25,7 @@ namespace FAuth.Controllers.api /// 角色组信息 [HttpPost] [ProducesResponseType(typeof(RoleGroup),200)] - public RoleGroup AddNew(string name,string description) { + public RoleGroup AddNewGroup(string name,string description) { if(name.IsNullOrEmpty()) { throw new ApiArgumentNullException(nameof(name)); } @@ -49,7 +49,7 @@ namespace FAuth.Controllers.api /// 角色组信息 [HttpPost] [ProducesResponseType(typeof(RoleGroup),200)] - public RoleGroup GetApps(string name) { + public RoleGroup GetRoleGroups(string name) { if(string.IsNullOrEmpty(name)) throw new ApiArgumentNullException(nameof(name)); var qu = this.Db.RoleGroups.Where(m => m.Name == name);