feat: Add ClearCart command and response, implement CancelOrder command with validation, and enhance DeliveryStatus and User models

This commit is contained in:
masoodafar-web
2025-12-02 03:30:36 +03:30
parent 25fc73ae28
commit 78606cc5cc
100 changed files with 12925 additions and 8137 deletions

View File

@@ -43,6 +43,12 @@ service UserCartsContract
};
};
rpc ClearCart(ClearCartRequest) returns (ClearCartResponse){
option (google.api.http) = {
post: "/ClearCart"
body: "*"
};
};
}
message CreateNewUserCartsRequest
{
@@ -105,3 +111,16 @@ message GetAllUserCartsByFilterResponseModel
string product_thumbnail_path = 9;
google.protobuf.Timestamp created = 10;
}
// ClearCart Messages
message ClearCartRequest
{
int64 user_id = 1;
}
message ClearCartResponse
{
int64 user_id = 1;
int32 removed_items_count = 2;
string message = 3;
}