using Exam.Infrastructure.Data.Entity;
using Exam.Infrastructure.Data.Interface;
using Exam.Infrastructure.Enums;
using Hotline.Share.Exams.Interface;
using System.ComponentModel;
namespace Hotline.Share.Dtos.Questions
{
///
/// 试题选项
///
[Description("试题选项")]
public class QuestionOptionsDto:UpdateQuestionOptionsDto
{
public string CompleteContent
{
get
{
return string.Concat(Label, ".", Content);
}
}
}
///
/// 查看试题选项
///
[Description("查看试题选项")]
public class ViewQuestionOptionDto : QuestionOptionsDto
{
public bool IsSelected { get; set; }
}
///
/// 试题选项
///
[Description("试题选项")]
public class AddQuestionOptionsDto : IAddRequest,IOperationStatus
{
///
/// 选项内容
///
[Description("选项内容")]
public string Content { get; set; }
///
/// 是否答案
///
[Description("是否答案")]
public bool IsAnswer { get; set; }
///
/// 试题
///
[Description("试题")]
public string QuestionId { get; set; }
///
/// 操作状态
///
[Description("操作状态")]
public EEOperationStatus OperationStatus { get; set; }
///
/// 选项题标
///
[Description("选项题标")]
public string Label { get; set; }
}
///
/// 试题选项
///
[Description("试题选项")]
public class UpdateQuestionOptionsDto : AddQuestionOptionsDto,IActionRequest
{
///
/// 主键
///
[Description("主键")]
public string Id { get; set; }
}
}