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,34 @@
using System.ComponentModel.DataAnnotations;
namespace StopShopping.Services.Models.Req;
/// <summary>
/// 修改用户资料
/// </summary>
/// <value></value>
public record EditUserParams
{
/// <summary>
/// 昵称
/// </summary>
/// <value></value>
[Length(2, 50)]
[Required]
public string NickName { get; set; } = string.Empty;
/// <summary>
/// 头像文件名
/// </summary>
/// <value></value>
public string? AvatarFileName { get; set; }
/// <summary>
/// 默认角色
/// </summary>
/// <value></value>
public UserRoles DefaultRole { get; set; }
/// <summary>
/// 联系电话
/// </summary>
/// <value></value>
[Phone]
public string? Telephone { get; set; }
}