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.
28 lines
688 B
28 lines
688 B
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("密码不允许空");
|
|
}
|
|
}
|
|
}
|