山东雷驰
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
671 B

using FluentValidation;
namespace Kean.Domain.Identity.Commands
{
/// <summary>
/// 修改头像命令
/// </summary>
public class ModifyAvatarCommand : CommandValidator<ModifyAvatarCommand>, ICommand
{
/// <summary>
/// 身份标识
/// </summary>
public int Id { get; set; }
/// <summary>
/// 头像
/// </summary>
public string Avatar { get; set; }
/// <summary>
/// 验证项
/// </summary>
protected override void Validation()
{
RuleFor(r => r.Avatar.Length).GreaterThan(8000).WithMessage("内容过大");
}
}
}