@@ -27,6 +27,12 @@ namespace Hotline.Share.Dtos.Sourcewares
/// </summary>
[Description("父级ID")]
public string ParentId { get; set; }
+
+ /// <summary>
+ /// 排序
+ /// </summary>
+ [Description("排序")]
+ public int? SortIndex { get; set; }
}
/// <summary>
@@ -33,7 +33,7 @@ namespace Hotline.Share.Dtos.Sourcewares
/// 课件分类Id
[Description("课件分类Id")]
- public string CategoryId { get; set; }
+ public string? CategoryId { get; set; }
/// 附件Id
@@ -16,8 +16,6 @@ namespace Hotline.Validators.Exams
public AddSourcewareDtoValidator()
{
RuleFor(m => m.Name).NotEmpty().WithMessage(x => string.Format(ExamErrorMessage.IsRequired, x.GetType().GetDescription(nameof(ExamSourceware.Name))));
- RuleFor(m => m.CategoryId).NotEmpty().WithMessage(x => string.Format(ExamErrorMessage.IsRequired, typeof(ExamSourcewareCategory).GetDescription()));
-
@@ -12,7 +12,6 @@ namespace Hotline.Validators.Exams
RuleFor(m => m.Id).NotEmpty().WithMessage(x => string.Format(ExamErrorMessage.IsRequired, x.GetType().GetDescription(nameof(ExamSourceware.Id))));