using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Mapster;

namespace YGNT.QuestionLibrary.KnowledgePoints.Dto
{
    public class KnowledgeTreePointDto : EntityDto<long>
    {
        /// <summary>
        /// 知识点名称
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 父知识点Id
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 所属学科id
        /// </summary>
        public int DisciplineId { get; set; }

        /// <summary>
        /// 认知能力Id
        /// </summary>
        public int CognitiveAbilityId { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 认证能力
        /// </summary>
        [AdaptIgnore]
        public string CognitiveAbility { get; set; }

        /// <summary>
        /// 所属学科
        /// </summary>
        [AdaptIgnore]
        public string Discipline { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否有子知识点
        /// </summary>
        public bool HasChild { get; set; }
    }
}