|
@@ -23,19 +23,22 @@ public class RoleController : BaseController
|
|
private readonly ISystemDataAuthorityRepository _systemDataAuthorityRepository;
|
|
private readonly ISystemDataAuthorityRepository _systemDataAuthorityRepository;
|
|
private readonly IMapper _mapper;
|
|
private readonly IMapper _mapper;
|
|
private readonly IOptions<IdentityConfiguration> _identityConfigurationAccessor;
|
|
private readonly IOptions<IdentityConfiguration> _identityConfigurationAccessor;
|
|
|
|
+ private readonly ISystemDataTableRepository _systemDataTableRepository;
|
|
|
|
|
|
public RoleController(
|
|
public RoleController(
|
|
IRoleRepository roleRepository,
|
|
IRoleRepository roleRepository,
|
|
ISystemAuthorityRepository systemAuthorityRepository,
|
|
ISystemAuthorityRepository systemAuthorityRepository,
|
|
ISystemDataAuthorityRepository systemDataAuthorityRepository,
|
|
ISystemDataAuthorityRepository systemDataAuthorityRepository,
|
|
IMapper mapper,
|
|
IMapper mapper,
|
|
- IOptions<IdentityConfiguration> identityConfigurationAccessor)
|
|
|
|
|
|
+ IOptions<IdentityConfiguration> identityConfigurationAccessor,
|
|
|
|
+ ISystemDataTableRepository systemDataTableRepository)
|
|
{
|
|
{
|
|
_roleRepository = roleRepository;
|
|
_roleRepository = roleRepository;
|
|
_systemAuthorityRepository = systemAuthorityRepository;
|
|
_systemAuthorityRepository = systemAuthorityRepository;
|
|
_systemDataAuthorityRepository = systemDataAuthorityRepository;
|
|
_systemDataAuthorityRepository = systemDataAuthorityRepository;
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_identityConfigurationAccessor = identityConfigurationAccessor;
|
|
_identityConfigurationAccessor = identityConfigurationAccessor;
|
|
|
|
+ _systemDataTableRepository = systemDataTableRepository;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -156,6 +159,16 @@ public class RoleController : BaseController
|
|
|
|
|
|
#region 数据权限管理
|
|
#region 数据权限管理
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 获取数据表
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("datatable-list")]
|
|
|
|
+ public async Task<IReadOnlyList<SystemDataTable>> GetDataTable()
|
|
|
|
+ {
|
|
|
|
+ return await _systemDataTableRepository.Queryable().ToListAsync() ;
|
|
|
|
+ }
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 新增数据权限
|
|
/// 新增数据权限
|
|
/// </summary>
|
|
/// </summary>
|