using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.Authorization.Roles;
using YGNT.Exam.Authorization.Roles;

namespace YGNT.Exam.Roles.Dto
{
    public class RoleEditDto : EntityDto<int>
    {
        /// <summary>
        /// 角色名
        /// </summary>
        [Required]
        [StringLength(AbpRoleBase.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        [Required]
        [StringLength(AbpRoleBase.MaxDisplayNameLength)]
        public string DisplayName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(Role.MaxDescriptionLength)]
        public string Description { get; set; }

        /// <summary>
        /// 是否为系统固定角色
        /// </summary>
        public bool IsStatic { get; set; }
    }
}