Generator Changes at 11/16/2025 1:53:26 AM +03:30

This commit is contained in:
masoodafar-web
2025-11-16 01:58:49 +03:30
parent 8f327158d5
commit 5f65c119e1
5 changed files with 19 additions and 17 deletions

View File

@@ -60,12 +60,6 @@ service UserContract
body: "*"
};
};
rpc CreateContractOtpToken(CreateContractOtpTokenRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
post: "/CreateContractOtpToken"
body: "*"
};
};
rpc AcceptContract(AcceptContractRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
post: "/AcceptContract"
@@ -200,14 +194,11 @@ message SetPasswordForUserRequest
string new_password = 2;
string confirm_password = 3;
}
message CreateContractOtpTokenRequest
{
google.protobuf.StringValue cotract_guid = 1;
}
message AcceptContractRequest
{
google.protobuf.StringValue code = 1;
google.protobuf.StringValue contract_html = 2;
string code = 1;
string contract_html = 2;
string sign_guid = 3;
}
message PaginationState

View File

@@ -6,6 +6,12 @@ public class AcceptContractRequestValidator : AbstractValidator<AcceptContractRe
{
public AcceptContractRequestValidator()
{
RuleFor(model => model.Code)
.NotEmpty();
RuleFor(model => model.ContractHtml)
.NotEmpty();
RuleFor(model => model.SignGuid)
.NotEmpty();
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{