重构作业结构:优化实体模型、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:
@@ -219,6 +219,9 @@ namespace TechHelper.Server.Migrations
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasColumnName("title");
|
||||
|
||||
b.Property<byte>("Type")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AssignmentId");
|
||||
@@ -332,6 +335,25 @@ namespace TechHelper.Server.Migrations
|
||||
b.ToTable("class_teachers", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entities.Contracts.Global", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("char(36)")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<byte>("Area")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
b.Property<string>("Info")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("global");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entities.Contracts.KeyPoint", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -445,6 +467,10 @@ namespace TechHelper.Server.Migrations
|
||||
.HasColumnType("longtext")
|
||||
.HasColumnName("options");
|
||||
|
||||
b.Property<string>("QType")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<byte>("SubjectArea")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("tinyint unsigned")
|
||||
@@ -723,6 +749,9 @@ namespace TechHelper.Server.Migrations
|
||||
b.Property<string>("SecurityStamp")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<byte>("SubjectArea")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
b.Property<bool>("TwoFactorEnabled")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
@@ -771,19 +800,19 @@ namespace TechHelper.Server.Migrations
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = new Guid("df89b9a0-65ef-42dd-b2cb-e59997a72e70"),
|
||||
Id = new Guid("8c6c5e8e-ef00-444c-9c7c-cba5cd6f7043"),
|
||||
Name = "Student",
|
||||
NormalizedName = "STUDENT"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("0775702a-5db7-4747-94d0-4376fad2b58b"),
|
||||
Id = new Guid("2670f35a-df0c-4071-8879-80eb99d138a1"),
|
||||
Name = "Teacher",
|
||||
NormalizedName = "TEACHER"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("37f41430-0cb7-44e5-988b-976200bd602d"),
|
||||
Id = new Guid("9eda9d90-0cd2-4fbe-b07e-f90bd01f32db"),
|
||||
Name = "Administrator",
|
||||
NormalizedName = "ADMINISTRATOR"
|
||||
});
|
||||
|
Reference in New Issue
Block a user