Generator Changes at 9/28/2025 6:19:21 AM

This commit is contained in:
MeysamMoghaddam
2025-09-28 06:30:13 +03:30
parent 1a99a88552
commit a3b7302d90
16 changed files with 534 additions and 6 deletions
@@ -42,6 +42,8 @@ message CreateNewOtpTokenResponse
bool success = 1;
string message = 2;
google.protobuf.StringValue code = 3;
int32 remaining_attempts = 4;
int32 remaining_seconds = 5;
}
message VerifyOtpTokenRequest
{
@@ -54,6 +56,8 @@ message VerifyOtpTokenResponse
bool success = 1;
string message = 2;
google.protobuf.Int64Value user_id = 3;
int32 remaining_attempts = 4;
int32 remaining_seconds = 5;
}
message GetAllOtpTokenByFilterRequest
{
@@ -70,6 +70,8 @@ message UpdateUserRequest
google.protobuf.StringValue last_name = 3;
google.protobuf.StringValue national_code = 4;
google.protobuf.StringValue avatar_path = 5;
bool is_rules_accepted = 6;
google.protobuf.Timestamp rules_accepted_at = 7;
}
message DeleteUserRequest
{
@@ -8,6 +8,8 @@ public class UpdateUserRequestValidator : AbstractValidator<UpdateUserRequest>
{
RuleFor(model => model.Id)
.NotNull();
RuleFor(model => model.IsRulesAccepted)
.NotNull();
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{