public virtual async Task <ListResultDto <IdentityUserDto> > GetUsersAsync(OrganizationUnitGetUserDto input) { var origanizationUnit = await OrganizationUnitRepository.GetAsync(input.Id); // TODO: 官方库没有定义分页查询API,有可能是企业付费版本,需要自行实现 var origanizationUnitUsers = await UserRepository.GetUsersInOrganizationUnitAsync(origanizationUnit.Id); return(new ListResultDto <IdentityUserDto>( ObjectMapper.Map <List <IdentityUser>, List <IdentityUserDto> >(origanizationUnitUsers))); }
public virtual async Task <ListResultDto <IdentityUserDto> > GetUsersAsync(OrganizationUnitGetUserDto input) { return(await OrganizationUnitAppService.GetUsersAsync(input)); }