IUserService.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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<UserUpdateDto> GetByIdForUpdate(string userId);
  15. Task<UserDto> GetByEmail(string email);
  16. Task<UserUpdateDto> GetById();
  17. Task<List<UserDto>> GetAllEmployees();
  18. Task<UserDto> GetUserById(string id);
  19. Task<EmployeeInfoDto> GetEmployeeInfo(string id);
  20. Task<string> GetUserFullName(string userId);
  21. Task Delete(string id);
  22. Task<UserDto> Create(UserDto input);
  23. Task<UserUpdateDto> Update(UserUpdateDto input);
  24. Task<ForgetPasswordResponseDto> ForgetPasswordMail(string email);
  25. Task<JobInterviewDto> SetUpInterview(JobInterviewDto interview);
  26. Task<bool> ResetPassword(ResetPasswordDto input);
  27. Task<bool> ForgetPassword(ForgetPasswordDto model);
  28. Task<bool> ConfirmEmail(ConfirmEmailDto model);
  29. Task<bool> IsExpiredToken(ConfirmEmailDto model);
  30. Task<bool> VerifyOTP(VerifyOTPDto input);
  31. Task<List<UserAllDto>> GetAllCompanyEmployees();
  32. Task<BlobObject> Download(string filePath);
  33. Task<UserDto> GetUserWithAttachmentById(string id);
  34. Task<List<UserDto>> GetUsersWithAttachmentsByIds(List<string> ids);
  35. Task<string> GetProfileImage(string userId);
  36. Task<bool> Update(string userId, long companyId);
  37. Task Suspend(string id);
  38. Task<bool> UnAssignCompanyEmployees(long companyId);
  39. Task<(string FullName, string Email, string ProfileImage)> GetUserNameEmail(string userId);
  40. }
  41. }