IUserService.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using GxPress.Common.Page;
  6. using GxPress.Request.App.User;
  7. using GxPress.Request.User;
  8. using GxPress.Result.App.User;
  9. using GxPress.Result.User;
  10. namespace GxPress.Service.Interface
  11. {
  12. public interface IUserService:IService
  13. {
  14. /// <summary>
  15. /// 根据部门或者自建ID获取用户
  16. /// </summary>
  17. /// <param name="request"></param>
  18. /// <returns></returns>
  19. Task<IEnumerable<UserInfoResult>> FindUser(FindUserRequest request);
  20. /// <summary>
  21. /// 根据用户ID查询用户数据
  22. /// </summary>
  23. /// <param name="userId"></param>
  24. /// <param name="blackUserId"></param>
  25. /// <returns></returns>
  26. Task<UserDetail> GetUserByIdAsync(int userId,int blackUserId);
  27. /// <summary>
  28. /// 生成excel
  29. /// </summary>
  30. /// <returns></returns>
  31. Task<string> ExcelUserAsync(List<int> userIds);
  32. /// <summary>
  33. /// 用户分页列表
  34. /// </summary>
  35. /// <param name="request"></param>
  36. /// <returns></returns>
  37. Task<PagedList<UserResult>> GetPagedListAsync(UserPageSearchRequest request);
  38. Task<bool> DeleteUsersAsync(IEnumerable<int> userIds);
  39. /// <summary>
  40. /// 获取用户未读数据
  41. /// </summary>
  42. /// <param name="userId"></param>
  43. /// <returns></returns>
  44. Task<UserCountResult> GetUserCountAsync(int userId);
  45. }
  46. }