将带宽限制改为流量限制

This commit is contained in:
刘祥超
2021-11-09 17:36:34 +08:00
parent a1ac68ccf0
commit fd4dbb6fe6
10 changed files with 476 additions and 478 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}
// 修改服务套餐