23 lines
646 B
C#

using MilliSim.Common.Dtos;
using MilliSim.Common.Models;
namespace MilliSim.Services;
/// <summary>
/// 验证码结果
/// </summary>
public class CaptchaResult
{
public string CaptchaId { get; set; } = string.Empty;
public string Svg { get; set; } = string.Empty;
}
public interface IAuthService
{
Task<ApiResponse<CaptchaResult>> GetCaptchaAsync();
Task<ApiResponse<LoginResponse>> LoginAsync(LoginRequest request);
Task<ApiResponse> ChangePasswordAsync(ChangePasswordRequest request);
Task<ApiResponse<UserDto>> GetProfileAsync();
Task<ApiResponse<UserDto>> UpdateProfileAsync(UpdateProfileRequest request);
}