feat: add geography entities with countries, states and cities
This commit is contained in:
@@ -55,6 +55,8 @@
|
||||
<Protobuf Include="Protos\discountcategory.proto" ProtoRoot="Protos\" GrpcServices="Both" />
|
||||
<Protobuf Include="Protos\discountshoppingcart.proto" ProtoRoot="Protos\" GrpcServices="Both" />
|
||||
<Protobuf Include="Protos\discountorder.proto" ProtoRoot="Protos\" GrpcServices="Both" />
|
||||
<!-- Geography System (GMS) -->
|
||||
<Protobuf Include="Protos\city.proto" ProtoRoot="Protos\" GrpcServices="Both" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PushToFoursatNuget" AfterTargets="Pack">
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package city;
|
||||
|
||||
import "public_messages.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.City";
|
||||
|
||||
service CityContract
|
||||
{
|
||||
rpc GetAllCitiesByFilter(GetAllCitiesByFilterRequest) returns (GetAllCitiesByFilterResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetAllCitiesByFilter"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
message GetAllCitiesByFilterRequest
|
||||
{
|
||||
messages.PaginationState pagination_state = 1;
|
||||
google.protobuf.StringValue sort_by = 2;
|
||||
GetAllCitiesByFilterFilter filter = 3;
|
||||
}
|
||||
|
||||
message GetAllCitiesByFilterFilter
|
||||
{
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.StringValue name = 2;
|
||||
google.protobuf.StringValue native = 3;
|
||||
google.protobuf.Int64Value state_id = 4;
|
||||
}
|
||||
|
||||
message GetAllCitiesByFilterResponse
|
||||
{
|
||||
messages.MetaData meta_data = 1;
|
||||
repeated GetAllCitiesByFilterResponseModel models = 2;
|
||||
}
|
||||
|
||||
message GetAllCitiesByFilterResponseModel
|
||||
{
|
||||
int64 id = 1;
|
||||
int64 external_id = 2;
|
||||
string name = 3;
|
||||
string native = 4;
|
||||
string latitude = 5;
|
||||
string longitude = 6;
|
||||
int64 state_id = 7;
|
||||
string state_name = 8;
|
||||
string state_native = 9;
|
||||
}
|
||||
@@ -63,6 +63,14 @@ service ClubMembershipContract
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
// امضای قرارداد باشگاه مشتریان
|
||||
rpc AcceptClubMembershipContract(AcceptClubMembershipContractRequest) returns (AcceptClubMembershipContractResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/ClubMembership/AcceptContract"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// Activate Command
|
||||
@@ -258,3 +266,19 @@ message ToggleUserClubFeatureResponse
|
||||
google.protobuf.Int64Value user_club_feature_id = 3;
|
||||
google.protobuf.BoolValue is_active = 4;
|
||||
}
|
||||
|
||||
// AcceptClubMembershipContract Command - امضای قرارداد باشگاه مشتریان
|
||||
message AcceptClubMembershipContractRequest
|
||||
{
|
||||
int64 user_id = 1;
|
||||
string otp_code = 2;
|
||||
string sign_guid = 3;
|
||||
string contract_html = 4;
|
||||
}
|
||||
|
||||
message AcceptClubMembershipContractResponse
|
||||
{
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
int64 contract_id = 3;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,12 @@ service UserContract
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RefreshToken(RefreshTokenRequest) returns (RefreshTokenResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/RefreshToken"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
message CreateNewUserRequest
|
||||
{
|
||||
@@ -191,3 +197,13 @@ message SetPasswordForUserRequest
|
||||
string new_password = 3;
|
||||
string confirm_password = 4;
|
||||
}
|
||||
message RefreshTokenRequest
|
||||
{
|
||||
string current_token = 1;
|
||||
}
|
||||
message RefreshTokenResponse
|
||||
{
|
||||
string token = 1;
|
||||
bool success = 2;
|
||||
string message = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user