Generator Changes at 11/25/2025 1:59:23 AM +03:30
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using FluentValidation;
|
||||
using CMSMicroservice.Protobuf.Protos.Category;
|
||||
|
||||
namespace CMSMicroservice.Protobuf.Validator.Category;
|
||||
|
||||
public class CreateNewCategoryRequestValidator : AbstractValidator<CreateNewCategoryRequest>
|
||||
|
||||
@@ -17,4 +17,3 @@ public class DeletePruductTagRequestValidator : AbstractValidator<DeletePruductT
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -15,4 +15,3 @@ public class GetAllPruductTagByFilterRequestValidator : AbstractValidator<GetAll
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ public class GetPruductTagRequestValidator : AbstractValidator<GetPruductTagRequ
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ public class DeleteTagRequestValidator : AbstractValidator<DeleteTagRequest>
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -15,4 +15,3 @@ public class GetAllTagByFilterRequestValidator : AbstractValidator<GetAllTagByFi
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ public class GetTagRequestValidator : AbstractValidator<GetTagRequest>
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -10,6 +10,8 @@ public class CreateNewUserWalletRequestValidator : AbstractValidator<CreateNewUs
|
||||
.NotNull();
|
||||
RuleFor(model => model.Balance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.NetworkBalance)
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
@@ -12,6 +12,8 @@ public class UpdateUserWalletRequestValidator : AbstractValidator<UpdateUserWall
|
||||
.NotNull();
|
||||
RuleFor(model => model.Balance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.NetworkBalance)
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
+4
@@ -12,6 +12,10 @@ public class CreateNewUserWalletChangeLogRequestValidator : AbstractValidator<Cr
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.CurrentNetworkBalance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeNerworkValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.IsIncrease)
|
||||
.NotNull();
|
||||
}
|
||||
|
||||
+4
@@ -14,6 +14,10 @@ public class UpdateUserWalletChangeLogRequestValidator : AbstractValidator<Updat
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.CurrentNetworkBalance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeNerworkValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.IsIncrease)
|
||||
.NotNull();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user