IUserService.cs 1.6 KB

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