using System.ComponentModel.DataAnnotations;

namespace TakeoutSaaS.Application.Identity.Contracts;

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

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