IAuthService.cs 603 B

12345678910111213141516171819202122232425
  1. using Microsoft.AspNetCore.Mvc.ModelBinding;
  2. using System.Threading.Tasks;
  3. using ZhonTai.Admin.Services.Auth.Dto;
  4. using ZhonTai.Admin.Tools.Captcha;
  5. namespace ZhonTai.Admin.Services.Auth;
  6. /// <summary>
  7. /// 认证授权接口
  8. /// </summary>
  9. public interface IAuthService
  10. {
  11. Task<dynamic> LoginAsync(AuthLoginInput input);
  12. Task<AuthGetUserInfoOutput> GetUserInfoAsync();
  13. Task<AuthGetPasswordEncryptKeyOutput> GetPasswordEncryptKeyAsync();
  14. Task<CaptchaOutput> GetCaptcha();
  15. Task<bool> CheckCaptcha(CaptchaInput input);
  16. Task<dynamic> Refresh([BindRequired] string token);
  17. }