using Dpz.Core.Public.ViewModel.Request;
using Dpz.Core.Public.ViewModel.Response;
namespace Dpz.Core.Service.RepositoryService;
/// <summary>
/// 身份验证
/// </summary>
public interface IAuthenticateService
{
/// <summary>
/// 身份验证
/// </summary>
/// <returns></returns>
Task<AuthenticatedResponse?> AuthenticatedAsync(AuthenticateRequest request);
/// <summary>
/// 刷新Token
/// </summary>
/// <returns></returns>
Task<AuthenticatedResponse?> RefreshTokenAsync(RefreshTokenRequest request);
/// <summary>
/// 登入
/// </summary>
/// <returns>token</returns>
Task<string?> SignInAsync(string account, string password);
}