Generator Changes at 9/28/2025 6:32:18 AM

This commit is contained in:
MeysamMoghaddam
2025-09-28 06:51:49 +03:30
parent 7f3e541633
commit dc0ba7a5ef
11 changed files with 26 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ service UserContract
body: "*"
};
};
rpc GetUser(GetUserRequest) returns (GetUserResponse){
rpc GetUser(google.protobuf.Empty) returns (GetUserResponse){
option (google.api.http) = {
get: "/GetUser"
@@ -68,10 +68,6 @@ message DeleteUserRequest
{
int64 id = 1;
}
message GetUserRequest
{
int64 id = 1;
}
message GetUserResponse
{
int64 id = 1;
@@ -131,18 +127,23 @@ message CreateNewOtpTokenResponse
{
bool success = 1;
string message = 2;
int32 remaining_attempts = 3;
int32 remaining_seconds = 4;
}
message VerifyOtpTokenRequest
{
string mobile = 1;
string purpose = 2;
string code = 3;
string parent_referral_code = 4;
}
message VerifyOtpTokenResponse
{
bool success = 1;
string message = 2;
google.protobuf.StringValue token = 3;
int32 remaining_attempts = 4;
int32 remaining_seconds = 5;
}
message PaginationState

View File

@@ -12,6 +12,8 @@ public class VerifyOtpTokenRequestValidator : AbstractValidator<VerifyOtpTokenRe
.NotEmpty();
RuleFor(model => model.Code)
.NotEmpty();
RuleFor(model => model.ParentReferralCode)
.NotEmpty();
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{