using System.ComponentModel.DataAnnotations;

namespace Entities.DTO
{
    public class UpdateLessonDto
    {
        [Required(ErrorMessage = "课程ID是必填项")]
        public Guid Id { get; set; }

        [Required(ErrorMessage = "课程标题是必填项")]
        [StringLength(255, ErrorMessage = "课程标题长度不能超过255个字符")]
        public string Title { get; set; } = string.Empty;

        [StringLength(1000, ErrorMessage = "课程描述长度不能超过1000个字符")]
        public string Description { get; set; } = string.Empty;

        [Required(ErrorMessage = "教材ID是必填项")]
        public Guid TextbookID { get; set; }
    }
}
