重构项目结构,移除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:
15
Entities/DTO/Common/QueryParameterDto.cs
Normal file
15
Entities/DTO/Common/QueryParameterDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class QueryParameterDto
|
||||
{
|
||||
public int PageIndex { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
public string Search { get; set; }
|
||||
}
|
||||
}
|
||||
14
Entities/DTO/Common/ResponseDto.cs
Normal file
14
Entities/DTO/Common/ResponseDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class ResponseDto
|
||||
{
|
||||
public bool IsSuccessfulRegistration { get; set; }
|
||||
public IEnumerable<string> Errors { get; set; } = Enumerable.Empty<string>();
|
||||
}
|
||||
}
|
||||
10
Entities/DTO/Common/TypeCommonDto.cs
Normal file
10
Entities/DTO/Common/TypeCommonDto.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 TypeCommonDto(Guid Id, string Name);
|
||||
}
|
||||
11
Entities/DTO/Common/TypeCommonRequest.cs
Normal file
11
Entities/DTO/Common/TypeCommonRequest.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Entities.Contracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public record TypeCommonRequest(TypeNameType Type, Guid? SubjectId);
|
||||
}
|
||||
Reference in New Issue
Block a user