Add category service and product category support
This commit is contained in:
@@ -45,6 +45,7 @@ message GetProductsResponse
|
||||
int32 view_count = 12;
|
||||
int32 remaining_count = 13;
|
||||
repeated ProductGalleryItem gallery = 14;
|
||||
repeated ProductCategoryPath categories = 15;
|
||||
}
|
||||
message GetAllProductsByFilterRequest
|
||||
{
|
||||
@@ -62,6 +63,7 @@ message GetAllProductsByFilterFilter
|
||||
google.protobuf.Int64Value price = 6;
|
||||
google.protobuf.Int32Value discount = 7;
|
||||
google.protobuf.Int32Value rate = 8;
|
||||
google.protobuf.Int64Value category_id = 9;
|
||||
}
|
||||
message GetAllProductsByFilterResponse
|
||||
{
|
||||
@@ -83,6 +85,7 @@ message GetAllProductsByFilterResponseModel
|
||||
int32 sale_count = 11;
|
||||
int32 view_count = 12;
|
||||
int32 remaining_count = 13;
|
||||
repeated ProductCategoryPath categories = 14;
|
||||
}
|
||||
|
||||
message ProductGalleryItem
|
||||
@@ -94,6 +97,20 @@ message ProductGalleryItem
|
||||
string image_thumbnail_path = 5;
|
||||
}
|
||||
|
||||
message ProductCategoryPath
|
||||
{
|
||||
int64 category_id = 1;
|
||||
string title = 2;
|
||||
repeated CategoryNode path = 3;
|
||||
}
|
||||
|
||||
message CategoryNode
|
||||
{
|
||||
int64 id = 1;
|
||||
string title = 2;
|
||||
google.protobuf.Int64Value parent_id = 3;
|
||||
}
|
||||
|
||||
message PaginationState
|
||||
{
|
||||
int32 page_number = 1;
|
||||
|
||||
Reference in New Issue
Block a user