From 20e134fba4b71f6849da53730018f3f081bde0ff Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Wed, 6 May 2020 16:02:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9Bapi?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FAuth/Controllers/api/AppController.cs | 5 +++++ FAuth/Controllers/api/RoleController.cs | 2 +- FAuth/Controllers/api/RoleGroupController.cs | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) 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);