Merge branch 'newmain'

This commit is contained in:
masoodafar-web
2025-11-21 10:27:20 +03:30
parent a32de7ebc7
commit cd7b9e4ad2
7 changed files with 149 additions and 23 deletions

View File

@@ -42,6 +42,12 @@ service UserOrderContract
};
};
rpc SubmitShopBuyOrder(SubmitShopBuyOrderRequest) returns (SubmitShopBuyOrderResponse){
option (google.api.http) = {
post: "/SubmitShopBuyOrder"
body: "*"
};
};
}
message CreateNewUserOrderRequest
{
@@ -113,31 +119,55 @@ message GetAllUserOrderByFilterResponseModel
int64 user_id = 7;
int64 user_address_id = 8;
}
message PaginationState
message SubmitShopBuyOrderRequest
{
int32 page_number = 1;
int32 page_size = 2;
int64 total_amount = 1;
}
message MetaData
message SubmitShopBuyOrderResponse
{
int64 current_page = 1;
int64 total_page = 2;
int64 page_size = 3;
int64 total_count = 4;
bool has_previous = 5;
bool has_next = 6;
int64 order_id = 1;
string payment_status = 2;
google.protobuf.Timestamp created = 3;
google.protobuf.StringValue payment_method = 4;
google.protobuf.StringValue user_address_text = 5;
google.protobuf.Int64Value total_amount = 6;
repeated SubmitShopBuyOrderFactorDetail factor_details = 7;
}
message DecimalValue
message SubmitShopBuyOrderFactorDetail
{
int64 units = 1;
sfixed32 nanos = 2;
int64 product_id = 1;
string product_title = 2;
google.protobuf.StringValue product_thumbnail_path = 3;
google.protobuf.Int64Value unit_price = 4;
google.protobuf.Int32Value count = 5;
google.protobuf.Int64Value unit_discount_price = 6;
}
message PaginationState
{
int32 page_number = 1;
int32 page_size = 2;
}
message MetaData
{
int64 current_page = 1;
int64 total_page = 2;
int64 page_size = 3;
int64 total_count = 4;
bool has_previous = 5;
bool has_next = 6;
}
message DecimalValue
{
int64 units = 1;
sfixed32 nanos = 2;
}