48 lines
		
	
	
		
			942 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			942 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
package wb.products;
 | 
						|
option go_package = "./wb/products";
 | 
						|
 | 
						|
service ProductsService {
 | 
						|
  rpc GetProducts(GetProductsRequest) returns (stream GetProductsResponse);
 | 
						|
}
 | 
						|
 | 
						|
message GetProductsRequest {
 | 
						|
  int64 marketplace_id = 1;
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
message Product {
 | 
						|
  message Size{
 | 
						|
    repeated string skus = 1;
 | 
						|
    int64 chrtID = 2;
 | 
						|
    string techSize = 3;
 | 
						|
    string wbSize = 4;
 | 
						|
  }
 | 
						|
  message Characteristic{
 | 
						|
    int64 id = 1;
 | 
						|
    string name = 2;
 | 
						|
    bytes value = 3;
 | 
						|
  }
 | 
						|
  message Photo {
 | 
						|
    string big = 1;
 | 
						|
  }
 | 
						|
  message Dimensions {
 | 
						|
    int64 length = 1;
 | 
						|
    int64 width = 2;
 | 
						|
    int64 height = 3;
 | 
						|
    float weightBrutto = 4;
 | 
						|
    bool isValid = 5;
 | 
						|
  }
 | 
						|
 | 
						|
  int64 nmID = 1;
 | 
						|
  int64 subjectID = 2;
 | 
						|
  string vendor_code = 3;
 | 
						|
  repeated Size sizes = 4;
 | 
						|
  repeated Characteristic characteristics = 5;
 | 
						|
  repeated Photo photos = 6;
 | 
						|
  Dimensions dimensions = 7;
 | 
						|
  string title = 8;
 | 
						|
}
 | 
						|
message GetProductsResponse {
 | 
						|
  repeated Product products = 1;
 | 
						|
} |