✨
This commit is contained in:
34
StopShopping.Services/Models/Req/EditUserParams.cs
Normal file
34
StopShopping.Services/Models/Req/EditUserParams.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user