Generator Changes at 11/16/2025 1:53:26 AM +03:30
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user