重构项目结构,移除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,14 @@
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class CreateSchoolDto
{
[Required(ErrorMessage = "学校名称是必填项。")]
[StringLength(50, ErrorMessage = "学校名称不能超过 50 个字符。")]
public string SchoolName { get; set; }
[StringLength(100, ErrorMessage = "地址不能超过 100 个字符。")]
public string Address { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class SchoolDto
{
public Guid Id { get; set; }
[Required(ErrorMessage = "学校名称是必填项。")]
[StringLength(50, ErrorMessage = "学校名称不能超过 50 个字符。")]
public string SchoolName { get; set; }
[StringLength(100, ErrorMessage = "地址不能超过 100 个字符。")]
public string Address { get; set; }
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
namespace Entities.DTO
{
public class SchoolResponseDto
{
public int SchoolId { get; set; }
public string SchoolName { get; set; }
public string Address { get; set; }
public DateTime CreateTime { get; set; }
// Navigation properties for response
public ICollection<GradeDto> Grades { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class UpdateSchoolDto
{
[Required(ErrorMessage = "学校ID是必填项。")]
public Guid SchoolId { get; set; }
[Required(ErrorMessage = "学校名称是必填项。")]
[StringLength(50, ErrorMessage = "学校名称不能超过 50 个字符。")]
public string SchoolName { get; set; }
[StringLength(100, ErrorMessage = "地址不能超过 100 个字符。")]
public string Address { get; set; }
}
}