feat: Add ClearCart command and response, implement CancelOrder command with validation, and enhance DeliveryStatus and User models
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user