mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 12:56:33 +00:00
move hw set and queue offset to user rest entitiy
switch to body email set
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Azaion.Common.Requests;
|
||||
|
||||
public class SetHWRequest
|
||||
{
|
||||
public string Email { get; set; } = null!;
|
||||
public string? Hardware { get; set; }
|
||||
}
|
||||
|
||||
public class SetHWRequestValidator : AbstractValidator<SetHWRequest>
|
||||
{
|
||||
public SetHWRequestValidator()
|
||||
{
|
||||
RuleFor(r => r.Email).NotEmpty()
|
||||
.WithErrorCode(ExceptionEnum.EmailLengthIncorrect.ToString())
|
||||
.WithMessage(_ => BusinessException.GetMessage(ExceptionEnum.EmailLengthIncorrect));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user