using Exam.Infrastructure.Data.Interface;
using Exam.Infrastructure.Enums;
using Exam.Infrastructure.Extensions;
using Hotline.Share.Enums.Exams;
using Hotline.Share.Exams.Interface;
using System.ComponentModel;
namespace Hotline.Share.Dtos.TestPapers
{
///
/// 人工组卷试题
///
[Description("人工组卷试题")]
public class TestPaperItemDto : UpdateTestPaperItemDto
{
///
/// 难度
///
[Description("难度")]
public EDifficultyLevel DifficultyLevel { get; set; }
///
/// 题型
///
[Description("题型")]
public EQuestionType QuestionType { get; set; }
///
/// 标题
///
[Description("标题")]
public string Title { get; set; }
///
/// 难度
///
[Description("难度")]
public string DifficultyLevelDesc
{
get
{
return DifficultyLevel.GetDescription();
}
}
///
/// 题型
///
[Description("题型")]
public string QuestionTypeDes
{
get
{
return QuestionType.GetDescription();
}
}
}
///
/// 人工组卷试题
///
[Description("人工组卷试题")]
public class AddTestPaperItemDto : IAddRequest, IOperationStatus
{
///
/// 试题Id
///
[Description("试题Id")]
public string QuestionId { get; set; }
///
/// 试卷Id
///
[Description("试卷Id")]
public string TestPaperId { get; set; }
///
/// 操作状态
///
[Description("操作状态")]
public EEOperationStatus OperationStatus { get; set; }
}
///
/// 人工组卷试题
///
[Description("人工组卷试题")]
public class UpdateTestPaperItemDto : AddTestPaperItemDto, IActionRequest
{
///
/// 主键
///
[Description("主键")]
public string Id { get; set; }
}
}