mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-01 16:36:38 +08:00
将带宽限制改为流量限制
This commit is contained in:
@@ -8,10 +8,10 @@ message Plan {
|
||||
bool isOn = 2;
|
||||
string name = 3;
|
||||
int64 clusterId = 4;
|
||||
bytes bandwidthLimitJSON = 5;
|
||||
bytes trafficLimitJSON = 5;
|
||||
bytes featuresJSON = 6;
|
||||
string priceType = 7;
|
||||
bytes bandwidthPriceJSON = 8;
|
||||
bytes trafficPriceJSON = 8;
|
||||
float monthlyPrice = 9;
|
||||
float seasonallyPrice = 10;
|
||||
float yearlyPrice = 11;
|
||||
|
||||
@@ -34,10 +34,10 @@ service PlanService {
|
||||
message CreatePlanRequest {
|
||||
string name = 1;
|
||||
int64 clusterId = 2;
|
||||
bytes bandwidthLimitJSON = 3;
|
||||
bytes trafficLimitJSON = 3;
|
||||
bytes featuresJSON = 4;
|
||||
string priceType = 5;
|
||||
bytes bandwidthPriceJSON = 6;
|
||||
bytes trafficPriceJSON = 6;
|
||||
float monthlyPrice = 7;
|
||||
float seasonallyPrice = 8;
|
||||
float yearlyPrice = 9;
|
||||
@@ -53,10 +53,10 @@ message UpdatePlanRequest {
|
||||
string name = 2;
|
||||
bool isOn = 3;
|
||||
int64 clusterId = 4;
|
||||
bytes bandwidthLimitJSON = 5;
|
||||
bytes trafficLimitJSON = 5;
|
||||
bytes featuresJSON = 6;
|
||||
string priceType = 7;
|
||||
bytes bandwidthPriceJSON = 8;
|
||||
bytes trafficPriceJSON = 8;
|
||||
float monthlyPrice = 9;
|
||||
float seasonallyPrice = 10;
|
||||
float yearlyPrice = 11;
|
||||
|
||||
@@ -129,11 +129,11 @@ service ServerService {
|
||||
// 清除缓存
|
||||
rpc purgeServerCache(PurgeServerCacheRequest) returns (PurgeServerCacheResponse);
|
||||
|
||||
// 查找带宽限制
|
||||
rpc findEnabledServerBandwidthLimit(FindEnabledServerBandwidthLimitRequest) returns (FindEnabledServerBandwidthLimitResponse);
|
||||
// 查找流量限制
|
||||
rpc findEnabledServerTrafficLimit(FindEnabledServerTrafficLimitRequest) returns (FindEnabledServerTrafficLimitResponse);
|
||||
|
||||
// 设置带宽限制
|
||||
rpc updateServerBandwidthLimit(UpdateServerBandwidthLimitRequest) returns (RPCSuccess);
|
||||
// 设置流量限制
|
||||
rpc updateServerTrafficLimit(UpdateServerTrafficLimitRequest) returns (RPCSuccess);
|
||||
|
||||
// 修改服务套餐
|
||||
rpc updateServerUserPlan(UpdateServerUserPlanRequest) returns (RPCSuccess);
|
||||
@@ -520,19 +520,19 @@ message PurgeServerCacheResponse {
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
// 查找带宽限制
|
||||
message FindEnabledServerBandwidthLimitRequest {
|
||||
// 查找流量限制
|
||||
message FindEnabledServerTrafficLimitRequest {
|
||||
int64 serverId = 1;
|
||||
}
|
||||
|
||||
message FindEnabledServerBandwidthLimitResponse {
|
||||
bytes bandwidthLimitJSON = 1;
|
||||
message FindEnabledServerTrafficLimitResponse {
|
||||
bytes trafficLimitJSON = 1;
|
||||
}
|
||||
|
||||
// 设置带宽限制
|
||||
message UpdateServerBandwidthLimitRequest {
|
||||
// 设置流量限制
|
||||
message UpdateServerTrafficLimitRequest {
|
||||
int64 serverId = 1;
|
||||
bytes bandwidthLimitJSON = 2;
|
||||
bytes trafficLimitJSON = 2;
|
||||
}
|
||||
|
||||
// 修改服务套餐
|
||||
|
||||
Reference in New Issue
Block a user