
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 13s
- 重构AppMainStruct、AssignmentQuestion、Question等实体模型 - 更新相关DTO以匹配新的数据结构 - 优化前端页面布局和组件 - 添加全局信息和笔记功能相关代码 - 更新数据库迁移和程序配置
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using Entities.Contracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Entities.DTO
|
|
{
|
|
public class AssignmentQuestionDto
|
|
{
|
|
public Guid Id { get; set; } = Guid.Empty;
|
|
public string Title { get; set; } = string.Empty;
|
|
public QuestionContextDto? Description { get; set; }
|
|
|
|
public byte Index { get; set; } = 0;
|
|
public float Score { get; set; } = 0;
|
|
public string Sequence { get; set; } = string.Empty;
|
|
public bool BCorrect { get; set; } = true;
|
|
public QuestionType Type { get; set; } = QuestionType.Unknown;
|
|
public string QType { get; set; } = string.Empty;
|
|
|
|
public Layout Layout { get; set; } = Layout.horizontal;
|
|
public AssignmentStructType StructType { get; set; } = AssignmentStructType.Question;
|
|
|
|
public AssignmentQuestionDto? ParentAssignmentQuestion { get; set; }
|
|
public List<AssignmentQuestionDto> ChildrenAssignmentQuestion { get; set; } = new List<AssignmentQuestionDto>();
|
|
|
|
public QuestionDto? Question { get; set; }
|
|
}
|
|
|
|
|
|
}
|