|
@@ -45,12 +45,9 @@ namespace Hotline.Api.Controllers
|
|
|
[Permission(EPermission.GetOrgJson)]
|
|
|
[HttpGet("getorgjson")]
|
|
|
[AllowAnonymous]
|
|
|
- public async Task<IReadOnlyList<SystemOrganize>> GetOrgJson([FromQuery] string? rootId)
|
|
|
+ public async Task<IReadOnlyList<SystemOrganize>> GetOrgJson()
|
|
|
{
|
|
|
- //return await _systemOrganizeRepository.GetOrgJson();
|
|
|
- return await _systemOrganizeRepository.Queryable()
|
|
|
- .OrderBy(d => d.Id)
|
|
|
- .ToTreeAsync(x => x.Children, it => it.ParentId, rootId);
|
|
|
+ return await _systemOrganizeRepository.GetOrgJson();
|
|
|
}
|
|
|
|
|
|
[Permission(EPermission.GetOrgJson)]
|