重构项目结构,移除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,12 @@
namespace Entities.DTO
{
public class AuthResponseDto
{
public bool IsAuthSuccessful { get; set; }
public string? ErrorMessage { get; set; }
public string? Token { get; set; }
public string? RefreshToken { get; set; }
public bool Is2StepVerificationRequired { get; set; }
public string Provider { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities.DTO
{
public class ForgotPasswordDto
{
[Required]
[EmailAddress]
public string Email { get; set; }
public string ClientURI { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Entities.DTO
{
public class RefreshTokenDto
{
public string? Token { get; set; }
public string? RefreshToken { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities.DTO
{
public class ResetPasswordDto
{
[Required(ErrorMessage = "Password is required")]
public string Password { get; set; }
[Compare(nameof(Password), ErrorMessage = "The password and confirmation password do not match")]
public string ConfirmPassword { get; set; }
public string Email { get; set; }
public string Token { get; set; }
}
}

View 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 ResetPasswordResponseDto
{
public bool IsResetPasswordSuccessful { get; set; }
public IEnumerable<string> Errors { get; set; } = Enumerable.Empty<string>();
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities.DTO
{
public class TwoFactorVerificationDto
{
public string Email { get; set; }
public string Provider { get; set; }
[Required(ErrorMessage = "Token is required")]
public string TwoFactorToken { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System.ComponentModel.DataAnnotations;
namespace Entities.DTO
{
public class UserForAuthenticationDto
{
[Required(ErrorMessage = "Email is required")]
public string? Email { get; set; }
[Required(ErrorMessage = "Password is required")]
public string? Password { get; set; }
}
}