GroupService.Category.cs 697 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. namespace GxPress.Service.Implement.Group
  4. {
  5. public partial class GroupService
  6. {
  7. /// <summary>
  8. /// 根据广场类别查询小组
  9. /// </summary>
  10. /// <param name="categoryId"></param>
  11. /// <returns></returns>
  12. public async Task<IEnumerable<Entity.Group>> GetAllAsync(int categoryId,int userId)
  13. {
  14. var group = await _groupRepository.GetAllAsync(categoryId,userId);
  15. foreach (var item in group)
  16. {
  17. item.AvatarUrl = Common.Tools.StringUtils.AddDomain(item.AvatarUrl);
  18. }
  19. return group;
  20. }
  21. }
  22. }