Initial commit (code only without large binaries)
This commit is contained in:
23
EdgeCommon/pkg/rpc/protos/service_price.proto
Normal file
23
EdgeCommon/pkg/rpc/protos/service_price.proto
Normal file
@@ -0,0 +1,23 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 价格相关服务
|
||||
service PriceService {
|
||||
// 计算费用
|
||||
rpc calculatePrice(CalculatePriceRequest) returns (CalculatePriceResponse);
|
||||
}
|
||||
|
||||
// 计算费用
|
||||
message CalculatePriceRequest {
|
||||
string priceType = 1;
|
||||
double trafficGB = 2;
|
||||
double bandwidthMB = 3;
|
||||
int64 nodeRegionId = 4;
|
||||
}
|
||||
|
||||
message CalculatePriceResponse {
|
||||
double amount = 1;
|
||||
bool hasNodeRegionPrice = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user