feat: Add image and thumbnail file fields to Create and Update Discount Product requests
Build and Deploy / build (push) Successful in 1m59s
Build and Deploy / build (push) Successful in 1m59s
This commit is contained in:
@@ -87,6 +87,8 @@ message CreateDiscountProductRequest
|
||||
int32 sort_order = 9;
|
||||
bool is_active = 10;
|
||||
repeated int64 category_ids = 11;
|
||||
ImageFileModel image_file = 12;
|
||||
ImageFileModel thumbnail_file = 13;
|
||||
}
|
||||
|
||||
message CreateDiscountProductResponse
|
||||
@@ -108,6 +110,8 @@ message UpdateDiscountProductRequest
|
||||
int32 sort_order = 9;
|
||||
bool is_active = 10;
|
||||
repeated int64 category_ids = 11;
|
||||
ImageFileModel image_file = 12;
|
||||
ImageFileModel thumbnail_file = 13;
|
||||
}
|
||||
|
||||
// Delete Product
|
||||
@@ -246,3 +250,11 @@ message DiscountProductImageDto
|
||||
int32 sort_order = 7;
|
||||
bool is_active = 8;
|
||||
}
|
||||
|
||||
// Image File Model for upload
|
||||
message ImageFileModel
|
||||
{
|
||||
bytes file = 1;
|
||||
string mime = 2;
|
||||
string file_name = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user