ql_apimanager_backend/Apimanager_backend/Dtos/RegisterRequestDto.cs
2024-11-03 22:01:35 +08:00

18 lines
606 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
namespace Apimanager_backend.Dtos
{
public class RegisterRequestDto
{
[Required(ErrorMessage = "用户名必填!")]
[MaxLength(20,ErrorMessage = "用户名最长20字符")]
public string Username { get; set; }
[Required(ErrorMessage = "密码必填!")]
public string Password { get; set; }
[Required(ErrorMessage = "邮箱必填!")]
public string Email { get; set; }
[Required(ErrorMessage = "验证码必填!")]
public string VerificationCode { get; set; }
}
}