ISysAuthService.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace YBEE.EQM.Application;
  2. /// <summary>
  3. /// 用户登录认证服务
  4. /// </summary>
  5. public interface ISysAuthService
  6. {
  7. /// <summary>
  8. /// 账户密码登录
  9. /// </summary>
  10. /// <param name="input"></param>
  11. /// <returns></returns>
  12. Task<AuthOutput> LoginByAccount(LoginInput input);
  13. /// <summary>
  14. /// 退出登录
  15. /// </summary>
  16. /// <returns></returns>
  17. Task Logout();
  18. /// <summary>
  19. /// 获取当前登录用户信息
  20. /// </summary>
  21. /// <returns></returns>
  22. Task<LoginOutput> GetLoginUser();
  23. /// <summary>
  24. /// 获取图形验证码
  25. /// </summary>
  26. /// <returns></returns>
  27. Task<GeneralCaptchaOutput> GetCaptcha();
  28. /// <summary>
  29. /// 验证图形验证码
  30. /// </summary>
  31. /// <param name="input"></param>
  32. /// <returns></returns>
  33. Task<GeneralCaptchaOutput> VerifyCaptcha(GeneralCaptchaInput input);
  34. /// <summary>
  35. /// 获取临时密码
  36. /// </summary>
  37. /// <param name="input"></param>
  38. /// <returns></returns>
  39. List<string> GetTempPassword(List<string> input);
  40. }