重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
This commit is contained in:
17
Entities/DTO/Subject/UpdateSubjectDto.cs
Normal file
17
Entities/DTO/Subject/UpdateSubjectDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user