mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-13 06:29:54 +08:00
18 lines
390 B
C#
18 lines
390 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Foxel.Models.Request.Auth;
|
|
|
|
public record 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; }
|
|
}
|