feat(auth): add user information update feature and refactor the authentication service.

This commit is contained in:
ShiYu
2025-05-20 20:43:08 +08:00
parent 2c73fc29df
commit 97e3586cf8
10 changed files with 507 additions and 246 deletions

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace Foxel.Models.Request.Auth;
public class UpdateUserRequest
{
[StringLength(50)]
public string? UserName { get; set; }
[EmailAddress]
public string? Email { get; set; }
public string? CurrentPassword { get; set; }
[StringLength(20, MinimumLength = 6)]
public string? NewPassword { get; set; }
}