You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
688 B
29 lines
688 B
3 months ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Kean.Domain.Identity.Commands
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 初始化密码命令
|
||
|
/// </summary>
|
||
|
public class InitializePasswordCommand : CommandValidator<InitializePasswordCommand>, ICommand
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 身份标识
|
||
|
/// </summary>
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 密码
|
||
|
/// </summary>
|
||
|
public string Replacement { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 验证项
|
||
|
/// </summary>
|
||
|
protected override void Validation()
|
||
|
{
|
||
|
RuleFor(r => r.Replacement).NotEmpty().WithMessage("密码不允许空");
|
||
|
}
|
||
|
}
|
||
|
}
|