38 lines
720 B
Protocol Buffer
38 lines
720 B
Protocol Buffer
syntax = "proto3";
|
|
package ozon.products;
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "./ozon/products";
|
|
|
|
service ProductsService {
|
|
// Retrieves a list of products based on the provided request.
|
|
rpc GetListOfProducts(GetListOfProductsRequest) returns (stream Product);
|
|
}
|
|
|
|
message GetListOfProductsRequest{
|
|
|
|
}
|
|
|
|
message Product {
|
|
uint64 id = 1;
|
|
string offer_id = 2;
|
|
Stocks stocks = 3;
|
|
repeated string barcodes = 4;
|
|
repeated Status statuses = 5;
|
|
|
|
message Status {
|
|
string status_name = 1;
|
|
}
|
|
|
|
|
|
message Stocks{
|
|
repeated Stock stock = 1;
|
|
bool has_stock = 2;
|
|
}
|
|
message Stock{
|
|
uint64 present = 1;
|
|
uint64 reserved = 2;
|
|
uint64 sku = 3;
|
|
string source = 4;
|
|
}
|
|
} |