mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-21 02:00:25 +08:00
23 lines
434 B
Protocol Buffer
23 lines
434 B
Protocol Buffer
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;
|
|
} |