套餐增加Websocket连接数限制

This commit is contained in:
GoEdgeLab
2023-12-19 14:57:03 +08:00
parent 5db8eb5dbd
commit b50ef0bd23
8 changed files with 179 additions and 84 deletions

View File

@@ -21,4 +21,6 @@ message Plan {
int32 totalServerNames = 15; // 可以添加的域名总数
int64 dailyRequests = 16; // 每日访问量额度
int64 monthlyRequests = 17; // 每月访问量额度
int64 dailyWebsocketConnections = 18; // 每日Websocket连接数额度
int64 monthlyWebsocketConnections = 19; // 每月Websocket连接数额度
}

View File

@@ -20,4 +20,5 @@ message ServerBandwidthStat {
int64 countCachedRequests = 13; // 总缓存请求数
int64 countAttackRequests = 14; // 总攻击请求数
int64 userPlanId = 15; // 绑定的用户套餐ID
int64 countWebsocketConnections = 16; // Websocket连接数
}

View File

@@ -39,14 +39,16 @@ message CreatePlanRequest {
string priceType = 5;
bytes trafficPriceJSON = 6;
bytes bandwidthPriceJSON = 10;
float monthlyPrice = 7;
float seasonallyPrice = 8;
float yearlyPrice = 9;
float monthlyPrice = 7; // 月度价格
float seasonallyPrice = 8; // 季度价格
float yearlyPrice = 9; // 年度价格
int32 totalServers = 11; // 可以添加的网站数
int32 totalServerNamesPerServer = 12; // 每个网站可以添加的域名数
int32 totalServerNames = 13; // 可以添加的域名总数
int64 dailyRequests = 14; // 每日访问量额度
int64 monthlyRequests = 15; // 每月访问量额度
int64 dailyWebsocketConnections = 16; // 每日Websocket连接数额度
int64 monthlyWebsocketConnections = 17; // 每月Websocket连接数额度
}
message CreatePlanResponse {
@@ -72,6 +74,8 @@ message UpdatePlanRequest {
int32 totalServerNames = 15; // 可以添加的域名总数
int64 dailyRequests = 16; // 每日访问量额度
int64 monthlyRequests = 17; // 每月访问量额度
int64 dailyWebsocketConnections = 18; // 每日Websocket连接数额度
int64 monthlyWebsocketConnections = 19; // 每月Websocket连接数额度
}
// 删除套餐