initial commit
This commit is contained in:
26
api/pb/discount/discount.proto
Normal file
26
api/pb/discount/discount.proto
Normal file
@@ -0,0 +1,26 @@
|
||||
syntax = "proto3";
|
||||
package discount;
|
||||
|
||||
// import "google/protobuf/empty.proto";
|
||||
option go_package = ".";
|
||||
|
||||
service Discount {
|
||||
rpc GetVendorDiscountInfo(GetVendorDiscountRequest) returns (GetVendorDiscountResponse) {}
|
||||
}
|
||||
|
||||
message GetVendorDiscountRequest {
|
||||
message DiscountEntry {
|
||||
int32 product_id = 1;
|
||||
int32 vendor_id = 2;
|
||||
}
|
||||
repeated DiscountEntry discounts = 1;
|
||||
}
|
||||
|
||||
message GetVendorDiscountResponse {
|
||||
message DiscountEntry {
|
||||
int32 product_id = 1;
|
||||
int32 vendor_id = 2;
|
||||
float percent = 3;
|
||||
}
|
||||
repeated DiscountEntry discounts = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user