using System.ComponentModel.DataAnnotations;

namespace HoneyBox.Admin.Models.Permission;

/// <summary>
/// 更新权限请求
/// </summary>
public class UpdatePermissionRequest
{
    /// <summary>
    /// 权限名称
    /// </summary>
    [Required(ErrorMessage = "权限名称不能为空")]
    [MaxLength(100, ErrorMessage = "权限名称最多100个字符")]
    public string Name { get; set; } = null!;

    /// <summary>
    /// 所属模块
    /// </summary>
    [MaxLength(50, ErrorMessage = "模块名称最多50个字符")]
    public string? Module { get; set; }

    /// <summary>
    /// 权限描述
    /// </summary>
    [MaxLength(500, ErrorMessage = "描述最多500个字符")]
    public string? Description { get; set; }
}
