This commit is contained in:
2026-03-25 14:55:34 +08:00
commit 2c44b3a4b2
131 changed files with 7453 additions and 0 deletions

View 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;
}