重构项目结构,移除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 CreateExamTypeDto
{
[Required(ErrorMessage = "考试类型名称是必填项。")]
[StringLength(20, ErrorMessage = "考试类型名称不能超过 20 个字符。")]
public string ExamTypeName { get; set; }
public string Description { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class ExamTypeDto
{
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,16 @@
using System;
using System.Collections.Generic;
namespace Entities.DTO
{
public class ExamTypeResponseDto
{
public Guid ExamId { get; set; }
public string ExamTypeName { get; set; }
public string Description { get; set; }
// Navigation properties for response
public int ExamCount { get; set; }
public List<string> ExamTitles { get; set; } = new List<string>();
}
}

View File

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