重构作业结构:优化实体模型、DTO映射和前端界面
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 13s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 13s
- 重构AppMainStruct、AssignmentQuestion、Question等实体模型 - 更新相关DTO以匹配新的数据结构 - 优化前端页面布局和组件 - 添加全局信息和笔记功能相关代码 - 更新数据库迁移和程序配置
This commit is contained in:
@@ -17,6 +17,8 @@ namespace Entities.DTO
|
||||
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;
|
||||
|
23
Entities/DTO/GlobalDto.cs
Normal file
23
Entities/DTO/GlobalDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Entities.Contracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
|
||||
public class GlobalDto
|
||||
{
|
||||
|
||||
public SubjectAreaEnum SubjectArea { get; set; } = SubjectAreaEnum.Unknown;
|
||||
public string Data { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class QuestionDisplayTypeData
|
||||
{
|
||||
public string Color { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
}
|
||||
}
|
@@ -16,6 +16,7 @@ namespace Entities.DTO
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public QuestionType Type { get; set; } = QuestionType.Unknown;
|
||||
public string QType { get; set; } = string.Empty;
|
||||
|
||||
public string? Answer { get; set; } = string.Empty;
|
||||
|
||||
|
14
Entities/DTO/SubjectTypeMetadataDto.cs
Normal file
14
Entities/DTO/SubjectTypeMetadataDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Collections.Generic;
|
||||
using Entities.Contracts;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class SubjectTypeMetadataDto
|
||||
{
|
||||
public SubjectAreaEnum SubjectArea { get; set; } = SubjectAreaEnum.Unknown;
|
||||
//public Dictionary<string, (string Color, string DisplayName)> Data = new Dictionary<string, (string Color, string DisplayName)>();
|
||||
|
||||
public string Data = string.Empty;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user