Browse Source

修复异常

zhontai 2 years ago
parent
commit
1969c66221

+ 3 - 3
src/platform/ZhonTai.Admin/Services/Permission/IPermissionService.cs

@@ -19,11 +19,11 @@ public partial interface IPermissionService
 
     Task<PermissionGetDotOutput> GetDotAsync(long id);
 
-    Task<IEnumerable<dynamic>> GetPermissionList();
+    Task<IEnumerable<dynamic>> GetPermissionListAsync();
 
-    Task<List<long>> GetRolePermissionList(long roleId);
+    Task<List<long>> GetRolePermissionListAsync(long roleId);
 
-    Task<List<long>> GetTenantPermissionList(long tenantId);
+    Task<List<long>> GetTenantPermissionListAsync(long tenantId);
 
     Task<List<PermissionListOutput>> GetListAsync(string key, DateTime? start, DateTime? end);
 

+ 2 - 2
src/platform/ZhonTai.Admin/Services/Permission/PermissionService.cs

@@ -143,7 +143,7 @@ public class PermissionService : BaseService, IPermissionService, IDynamicApi
     /// 查询授权权限列表
     /// </summary>
     /// <returns></returns>
-    public async Task<IEnumerable<dynamic>> GetPermissionList()
+    public async Task<IEnumerable<dynamic>> GetPermissionListAsync()
     {
         var permissions = await _permissionRepository.Select
             .WhereIf(_appConfig.Tenant && User.TenantType == TenantType.Tenant, a =>
@@ -177,7 +177,7 @@ public class PermissionService : BaseService, IPermissionService, IDynamicApi
     /// </summary>
     /// <param name="roleId"></param>
     /// <returns></returns>
-    public async Task<List<long>> GetRolePermissionList(long roleId = 0)
+    public async Task<List<long>> GetRolePermissionListAsync(long roleId = 0)
     {
         var permissionIds = await _rolePermissionRepository
             .Select.Where(d => d.RoleId == roleId)

+ 3 - 3
src/platform/ZhonTai.Admin/ZhonTai.Admin.xml

@@ -6069,20 +6069,20 @@
             <param name="end"></param>
             <returns></returns>
         </member>
-        <member name="M:ZhonTai.Admin.Services.Permission.PermissionService.GetPermissionList">
+        <member name="M:ZhonTai.Admin.Services.Permission.PermissionService.GetPermissionListAsync">
             <summary>
             查询授权权限列表
             </summary>
             <returns></returns>
         </member>
-        <member name="M:ZhonTai.Admin.Services.Permission.PermissionService.GetRolePermissionList(System.Int64)">
+        <member name="M:ZhonTai.Admin.Services.Permission.PermissionService.GetRolePermissionListAsync(System.Int64)">
             <summary>
             查询角色权限列表
             </summary>
             <param name="roleId"></param>
             <returns></returns>
         </member>
-        <member name="M:ZhonTai.Admin.Services.Permission.PermissionService.GetTenantPermissionList(System.Int64)">
+        <member name="M:ZhonTai.Admin.Services.Permission.PermissionService.GetTenantPermissionListAsync(System.Int64)">
             <summary>
             查询租户权限列表
             </summary>