ISysAuthService.cs 906 B

1234567891011121314151617181920212223242526272829303132333435
  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. }