using System.ComponentModel.DataAnnotations;

namespace TakeoutSaaS.Application.Identity.Contracts;

/// <summary>
/// 管理后台登录请求。
/// </summary>
public sealed record AdminLoginRequest
{
    /// <summary>
    /// 账号名。
    /// </summary>
    [Required]
    [MaxLength(64)]
    public string AccountName { get; init; } = string.Empty;

    /// <summary>
    /// 手机号。
    /// </summary>
    [Required]
    [MaxLength(32)]
    public string Phone { get; init; } = string.Empty;

    /// <summary>
    /// 密码。
    /// </summary>
    [Required]
    [MaxLength(128)]
    public string Password { get; init; } = string.Empty;
}
