重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s

This commit is contained in:
SpecialX
2025-10-09 18:57:28 +08:00
parent 403b34a098
commit ac900159ba
289 changed files with 11948 additions and 20150 deletions

View File

@@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class CreateSubjectDto
{
[Required(ErrorMessage = "科目名称是必填项。")]
[StringLength(20, ErrorMessage = "科目名称不能超过 20 个字符。")]
public string SubjectName { get; set; }
public string Description { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class SubjectDto
{
public Guid Id { get; set; }
[Required(ErrorMessage = "科目名称是必填项。")]
[StringLength(20, ErrorMessage = "科目名称不能超过 20 个字符。")]
public string Name { get; set; }
public string Description { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Entities.DTO
{
public class SubjectResponseDto
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
// Navigation properties for response
public int QuestionTypeCount { get; set; }
public int QuestionCount { get; set; }
public int TeacherCount { get; set; }
public List<string> QuestionTypeNames { get; set; } = new List<string>();
public List<string> TeacherNames { get; set; } = new List<string>();
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class UpdateSubjectDto
{
[Required(ErrorMessage = "科目ID是必填项。")]
public Guid SubjectId { get; set; }
[Required(ErrorMessage = "科目名称是必填项。")]
[StringLength(20, ErrorMessage = "科目名称不能超过 20 个字符。")]
public string SubjectName { get; set; }
public string Description { get; set; }
}
}