Generator Changes at 9/28/2025 12:17:26 AM

This commit is contained in:
MeysamMoghaddam
2025-09-28 00:19:54 +03:30
parent c7b641bca9
commit 314e2ab425
40 changed files with 248 additions and 1459 deletions

View File

@@ -12,12 +12,6 @@ option csharp_namespace = "FrontOffice.BFF.User.Protobuf.Protos.User";
service UserContract
{
rpc CreateNewUser(CreateNewUserRequest) returns (CreateNewUserResponse){
option (google.api.http) = {
post: "/CreateNewUser"
body: "*"
};
};
rpc UpdateUser(UpdateUserRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateUser"
@@ -42,29 +36,33 @@ service UserContract
};
};
}
message CreateNewUserRequest
{
google.protobuf.StringValue first_name = 1;
google.protobuf.StringValue last_name = 2;
string mobile = 3;
google.protobuf.StringValue national_code = 4;
google.protobuf.StringValue avatar_path = 5;
google.protobuf.Int64Value parent_id = 6;
}
message CreateNewUserResponse
{
int64 id = 1;
rpc CreateNewOtpToken(CreateNewOtpTokenRequest) returns (CreateNewOtpTokenResponse){
option (google.api.http) = {
post: "/CreateNewOtpToken"
body: "*"
};
};
rpc VerifyOtpToken(VerifyOtpTokenRequest) returns (VerifyOtpTokenResponse){
option (google.api.http) = {
post: "/VerifyOtpToken"
body: "*"
};
};
}
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;
UserAvatarFileModel avatar_file = 6;
}
message UserAvatarFileModel
{
google.protobuf.StringValue file_name = 1;
google.protobuf.StringValue file_mime = 2;
bytes file = 3;
}
message DeleteUserRequest
{
@@ -83,6 +81,10 @@ message GetUserResponse
google.protobuf.StringValue national_code = 5;
google.protobuf.StringValue avatar_path = 6;
google.protobuf.Int64Value parent_id = 7;
string token = 8;
string referral_code = 9;
bool is_mobile_verified = 10;
google.protobuf.Timestamp mobile_verified_at = 11;
}
message GetAllUserByFilterRequest
{
@@ -99,6 +101,8 @@ 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;
}
message GetAllUserByFilterResponse
{
@@ -114,6 +118,32 @@ 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;
}
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;
google.protobuf.Int64Value user_id = 3;
}
message PaginationState