✨
This commit is contained in:
40
StopShopping.Services/Models/Req/SignUpParams.cs
Normal file
40
StopShopping.Services/Models/Req/SignUpParams.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace StopShopping.Services.Models.Req;
|
||||
|
||||
/// <summary>
|
||||
/// 注册参数
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public record SignUpParams
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录账号
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[Required]
|
||||
[Length(2, 20)]
|
||||
public string Account { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[Required]
|
||||
[Length(2, 50)]
|
||||
public string NickName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 默认角色
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public UserRoles DefaultRole { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录密码
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[Required]
|
||||
[MinLength(6)]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user