2026-03-18 13:47:34 +08:00

34 lines
816 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Enum;
namespace YD_Event.Application.Role.Dtos;
/// <summary>
/// 添加角色输入
/// </summary>
public class AddSysRoleInput
{
/// <summary>
/// 角色名称
/// </summary>
[Required(ErrorMessage = "角色名称为必填项")]
[MaxLength(32, ErrorMessage = "角色名称限制32个字符内")]
public string Name { get; set; }
/// <summary>
/// 备注
/// </summary>
[MaxLength(200, ErrorMessage = "备注限制200个字符内")]
public string Remark { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; } = 100;
/// <summary>
/// 状态
/// </summary>
public AvailabilityStatus Status { get; set; } = AvailabilityStatus.Enable;
}