重构项目结构,移除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:
14
Entities/DTO/KeyPoint/CreateKeyPointDto.cs
Normal file
14
Entities/DTO/KeyPoint/CreateKeyPointDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public record CreateKeyPointDto
|
||||
{
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string Key { get; init; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public Guid LessonID { get; init; }
|
||||
}
|
||||
}
|
||||
10
Entities/DTO/KeyPoint/KeyPointDto.cs
Normal file
10
Entities/DTO/KeyPoint/KeyPointDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public record KeyPointDto(Guid Id, string Key, Guid LessonId);
|
||||
}
|
||||
13
Entities/DTO/KeyPoint/KeyPointResponseDto.cs
Normal file
13
Entities/DTO/KeyPoint/KeyPointResponseDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public record KeyPointResponseDto
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public string Key { get; init; } = string.Empty;
|
||||
public Guid LessonID { get; init; }
|
||||
public DateTime CreatedAt { get; init; }
|
||||
public DateTime? UpdatedAt { get; init; }
|
||||
}
|
||||
}
|
||||
17
Entities/DTO/KeyPoint/UpdateKeyPointDto.cs
Normal file
17
Entities/DTO/KeyPoint/UpdateKeyPointDto.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public record UpdateKeyPointDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Id { get; init; }
|
||||
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string Key { get; init; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public Guid LessonID { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user