网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
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);
}
loading