using System.ComponentModel.DataAnnotations;

namespace BookmarkApi.Shared.DTOs.Auth;

/// <summary>
/// 用户登录请求
/// </summary>
public class LoginRequest
{
    /// <summary>
    /// 邮箱
    /// </summary>
    [Required(ErrorMessage = "邮箱不能为空")]
    [EmailAddress(ErrorMessage = "邮箱格式不正确")]
    public string Email { get; set; } = string.Empty;

    /// <summary>
    /// 密码
    /// </summary>
    [Required(ErrorMessage = "密码不能为空")]
    public string Password { get; set; } = string.Empty;

    /// <summary>
    /// 设备名称
    /// </summary>
    [StringLength(200)]
    public string? DeviceName { get; set; }

    /// <summary>
    /// 设备类型
    /// </summary>
    [StringLength(200)]
    public string? DeviceType { get; set; }

    /// <summary>
    /// 设备指纹
    /// </summary>
    [StringLength(500)]
    public string? DeviceFingerprint { get; set; }
}

