|
@@ -149,13 +149,16 @@ namespace GxPress.Repository.Implement
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<IEnumerable<GroupUserFindResult>> FindGroupByGroupFolderId(GroupSearchRequest request)
|
|
|
+ public async Task<PagedList<GroupUserFindResult>> FindGroupByGroupFolderId(GroupSearchRequest request)
|
|
|
{
|
|
|
- var result = new List<GroupUserFindResult>();
|
|
|
- result.AddRange(await GetGroupUserFindResult(true, request));
|
|
|
- result.AddRange(await GetGroupUserFindResult(false, request));
|
|
|
- foreach (var item in result)
|
|
|
+ var result = new PagedList<GroupUserFindResult>();
|
|
|
+ var data = new List<GroupUserFindResult>();
|
|
|
+ data.AddRange(await GetGroupUserFindResult(true, request));
|
|
|
+ data.AddRange(await GetGroupUserFindResult(false, request));
|
|
|
+ foreach (var item in data)
|
|
|
item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
|
|
|
+ result.Items = data;
|
|
|
+ result.Total = result.Items.Count();
|
|
|
return result;
|
|
|
}
|
|
|
public async Task<IEnumerable<GroupUserFindResult>> GetGroupUserFindResult(bool IsTop, GroupSearchRequest request)
|