Compare commits
	
		
			16 Commits
		
	
	
		
			ac37bf36f5
			...
			b30d322774
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b30d322774 | |||
| 95306de158 | |||
| c45adaec4d | |||
| 564a579309 | |||
| f33ca7daa1 | |||
| eb15ad269a | |||
| e8b562a370 | |||
| 551ee4c6d9 | |||
| 500304a79f | |||
| 8d5b13cab3 | |||
| 758fa0c6b4 | |||
| b58f68bc74 | |||
| f640db172d | |||
| 84deae824a | |||
| 8dfaf8cbf3 | |||
| daf8308254 | 
							
								
								
									
										20
									
								
								marketplace/marketplace.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								marketplace/marketplace.proto
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
syntax = "proto3";
 | 
			
		||||
package marketplace;
 | 
			
		||||
option go_package = "./marketplace";
 | 
			
		||||
 | 
			
		||||
service MarketplaceService {
 | 
			
		||||
 | 
			
		||||
  rpc GetMarketplaceById(GetMarketplaceByIdRequest) returns (Marketplace);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message GetMarketplaceByIdRequest {
 | 
			
		||||
  uint64 marketplace_id = 1; // ID of the marketplace to retrieve
 | 
			
		||||
}
 | 
			
		||||
message Marketplace {
 | 
			
		||||
  uint64 id = 1;
 | 
			
		||||
  uint32 base_marketplace = 2; // ID of the base marketplace
 | 
			
		||||
  string auth_data = 3; // Authentication data for the marketplace
 | 
			
		||||
  string warehouse_id = 4; // ID of the warehouse associated with the marketplace
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -1,38 +1,41 @@
 | 
			
		||||
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 OzonProductItem);
 | 
			
		||||
  rpc GetListOfProducts(GetListOfProductsRequest) returns (stream  GetListOfProductsResponse);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message GetListOfProductsRequest{
 | 
			
		||||
  message Filter {
 | 
			
		||||
    repeated string offer_id = 1; // List of offer IDs to filter products
 | 
			
		||||
    repeated int64 product_id = 2; // List of product IDs to filter products
 | 
			
		||||
    string visibility = 3; // Visibility status of the products
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
message GetListOfProductsResponse {
 | 
			
		||||
  repeated Product products = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  message Body {
 | 
			
		||||
    Filter filter = 1; // Filter criteria for the request
 | 
			
		||||
message Product {
 | 
			
		||||
  int64 id = 1;
 | 
			
		||||
  string offer_id = 2;
 | 
			
		||||
  Stocks stocks = 3;
 | 
			
		||||
  repeated string barcodes = 4;
 | 
			
		||||
  Status statuses = 5;
 | 
			
		||||
 | 
			
		||||
  message Status {
 | 
			
		||||
    string status_name = 1;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  uint64 marketplace_id = 1; // ID of the marketplace
 | 
			
		||||
  Body body = 2; // Body containing the filter criteria
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message OzonProductItem {
 | 
			
		||||
  message Quants {
 | 
			
		||||
    string quant_code = 1; // Code representing the quant
 | 
			
		||||
    uint32 quant_size = 2; // Size of the quant
 | 
			
		||||
  message Stocks{
 | 
			
		||||
    repeated Stock stocks = 1;
 | 
			
		||||
    bool has_stock = 2;
 | 
			
		||||
  }
 | 
			
		||||
  message Stock{
 | 
			
		||||
    int64 present = 1;
 | 
			
		||||
    int64 reserved = 2;
 | 
			
		||||
    int64 SKU = 3;
 | 
			
		||||
    string source = 4;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  bool archived = 1; // Indicates if the product is archived
 | 
			
		||||
  bool has_fbo_stocks = 2; // Indicates if there are FBO stocks available
 | 
			
		||||
  bool has_fbs_stocks = 3; // Indicates if there are FBS stocks available
 | 
			
		||||
  bool is_discounted = 4; // Indicates if the product is discounted
 | 
			
		||||
  string offer_id = 5; // Unique identifier for the offer
 | 
			
		||||
  uint32 product_id = 6; // Unique identifier for the product
 | 
			
		||||
  repeated Quants quants = 7; // List of quants associated with the product
 | 
			
		||||
}
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
syntax = "proto3";
 | 
			
		||||
package wb.products;
 | 
			
		||||
 | 
			
		||||
option go_package = "./wb/products";
 | 
			
		||||
 | 
			
		||||
service ProductsService {
 | 
			
		||||
}
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
syntax = "proto3";
 | 
			
		||||
package yandexmarket.products;
 | 
			
		||||
 | 
			
		||||
option go_package = "./yandexmarket/products";
 | 
			
		||||
 | 
			
		||||
service ProductsService {
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user