using System.ComponentModel.DataAnnotations; namespace StopShopping.Services.Models.Req; /// /// 修改密码 /// /// public record ChangePasswordParams { /// /// 原密码 /// /// [Required] public string? OldPassword { get; set; } /// /// 新密码 /// /// [Required] [MinLength(6)] public string? NewPassword { get; set; } }