IUserService.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.AspNetCore.Http;
  2. using MTWorkHR.Application.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Application.Identity
  9. {
  10. public interface IUserService
  11. {
  12. Task<PagingResultDto<UserAllDto>> GetAll(UserPagingInputDto PagingInputDto);
  13. Task<UserDto> GetById(string userId);
  14. Task<UserDto> GetByEmail(string email);
  15. Task<UserDto> GetById();
  16. Task<List<UserDto>> GetAllEmployees();
  17. Task<UserDto> GetUserById(string id);
  18. Task<string> GetUserFullName(string userId);
  19. Task Delete(string id);
  20. Task<UserDto> Create(UserDto input);
  21. Task<UserUpdateDto> Update(UserUpdateDto input);
  22. Task<ForgetPasswordResponseDto> ForgetPasswordMail(string input);
  23. Task<bool> ResetPassword(ResetPasswordDto input);
  24. Task<bool> ForgetPassword(ForgetPasswordDto model);
  25. Task<bool> ConfirmEmail(ConfirmEmailDto model);
  26. Task<bool> IsExpiredToken(ConfirmEmailDto model);
  27. Task<bool> VerifyOTP(VerifyOTPDto input);
  28. Task<List<UserAllDto>> GetAllCompanyEmployees();
  29. Task<BlobObject> Download(string filePath);
  30. Task<UserDto> GetUserWithAttachmentById(string id);
  31. Task<string> GetProfileImage(string userId);
  32. Task<bool> Update(string userId, long companyId);
  33. Task Suspend(string id);
  34. }
  35. }