IUserService.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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> GetById();
  15. Task<List<UserDto>> GetAllEmployees();
  16. Task<UserDto> GetUserById(string id);
  17. Task<string> GetUserFullName(string userId);
  18. Task Delete(string id);
  19. Task<UserDto> Create(UserDto input);
  20. Task<UserUpdateDto> Update(UserUpdateDto input);
  21. Task<ForgetPasswordResponseDto> ForgetPasswordMail(string input);
  22. Task<bool> ResetPassword(ResetPasswordDto input);
  23. Task<bool> ForgetPassword(ForgetPasswordDto model);
  24. Task<bool> ConfirmEmail(ConfirmEmailDto model);
  25. Task<bool> IsExpiredToken(ConfirmEmailDto model);
  26. Task<bool> VerifyOTP(VerifyOTPDto input);
  27. Task<List<UserAllDto>> GetAllCompanyEmployees();
  28. Task<BlobObject> Download(string filePath);
  29. Task<UserDto> GetUserWithAttachmentById(string id);
  30. }
  31. }