Generator Changes at 9/27/2025 11:07:17 PM
This commit is contained in:
87
src/CMSMicroservice.Protobuf/Protos/otptoken.proto
Normal file
87
src/CMSMicroservice.Protobuf/Protos/otptoken.proto
Normal file
@@ -0,0 +1,87 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package otptoken;
|
||||
|
||||
import "public_messages.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.OtpToken";
|
||||
|
||||
service OtpTokenContract
|
||||
{
|
||||
rpc CreateNewOtpToken(CreateNewOtpTokenRequest) returns (CreateNewOtpTokenResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/CreateNewOtpToken"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc VerifyOtpToken(VerifyOtpTokenRequest) returns (VerifyOtpTokenResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/VerifyOtpToken"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc GetAllOtpTokenByFilter(GetAllOtpTokenByFilterRequest) returns (GetAllOtpTokenByFilterResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetAllOtpTokenByFilter"
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
message CreateNewOtpTokenRequest
|
||||
{
|
||||
string mobile = 1;
|
||||
string purpose = 2;
|
||||
}
|
||||
message CreateNewOtpTokenResponse
|
||||
{
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
google.protobuf.StringValue code = 3;
|
||||
}
|
||||
message VerifyOtpTokenRequest
|
||||
{
|
||||
string mobile = 1;
|
||||
string purpose = 2;
|
||||
string code = 3;
|
||||
}
|
||||
message VerifyOtpTokenResponse
|
||||
{
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
}
|
||||
message GetAllOtpTokenByFilterRequest
|
||||
{
|
||||
messages.PaginationState pagination_state = 1;
|
||||
google.protobuf.StringValue sort_by = 2;
|
||||
GetAllOtpTokenByFilterFilter filter = 3;
|
||||
}
|
||||
message GetAllOtpTokenByFilterFilter
|
||||
{
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.StringValue mobile = 2;
|
||||
google.protobuf.StringValue purpose = 3;
|
||||
google.protobuf.StringValue code_hash = 4;
|
||||
google.protobuf.Timestamp expires_at = 5;
|
||||
google.protobuf.Int32Value attempts = 6;
|
||||
google.protobuf.BoolValue is_used = 7;
|
||||
}
|
||||
message GetAllOtpTokenByFilterResponse
|
||||
{
|
||||
messages.MetaData meta_data = 1;
|
||||
repeated GetAllOtpTokenByFilterResponseModel models = 2;
|
||||
}
|
||||
message GetAllOtpTokenByFilterResponseModel
|
||||
{
|
||||
int64 id = 1;
|
||||
string mobile = 2;
|
||||
string purpose = 3;
|
||||
string code_hash = 4;
|
||||
google.protobuf.Timestamp expires_at = 5;
|
||||
int32 attempts = 6;
|
||||
bool is_used = 7;
|
||||
}
|
||||
@@ -62,10 +62,8 @@ message UpdateUserRequest
|
||||
int64 id = 1;
|
||||
google.protobuf.StringValue first_name = 2;
|
||||
google.protobuf.StringValue last_name = 3;
|
||||
string mobile = 4;
|
||||
google.protobuf.StringValue national_code = 5;
|
||||
google.protobuf.StringValue avatar_path = 6;
|
||||
google.protobuf.Int64Value parent_id = 7;
|
||||
google.protobuf.StringValue national_code = 4;
|
||||
google.protobuf.StringValue avatar_path = 5;
|
||||
}
|
||||
message DeleteUserRequest
|
||||
{
|
||||
@@ -84,6 +82,9 @@ message GetUserResponse
|
||||
google.protobuf.StringValue national_code = 5;
|
||||
google.protobuf.StringValue avatar_path = 6;
|
||||
google.protobuf.Int64Value parent_id = 7;
|
||||
string referral_code = 8;
|
||||
bool is_mobile_verified = 9;
|
||||
google.protobuf.Timestamp mobile_verified_at = 10;
|
||||
}
|
||||
message GetAllUserByFilterRequest
|
||||
{
|
||||
@@ -100,6 +101,9 @@ message GetAllUserByFilterFilter
|
||||
google.protobuf.StringValue national_code = 5;
|
||||
google.protobuf.StringValue avatar_path = 6;
|
||||
google.protobuf.Int64Value parent_id = 7;
|
||||
google.protobuf.StringValue referral_code = 8;
|
||||
google.protobuf.BoolValue is_mobile_verified = 9;
|
||||
google.protobuf.Timestamp mobile_verified_at = 10;
|
||||
}
|
||||
message GetAllUserByFilterResponse
|
||||
{
|
||||
@@ -115,4 +119,7 @@ message GetAllUserByFilterResponseModel
|
||||
google.protobuf.StringValue national_code = 5;
|
||||
google.protobuf.StringValue avatar_path = 6;
|
||||
google.protobuf.Int64Value parent_id = 7;
|
||||
string referral_code = 8;
|
||||
bool is_mobile_verified = 9;
|
||||
google.protobuf.Timestamp mobile_verified_at = 10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user