mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-30 23:16:37 +08:00
支持套餐相关操作
This commit is contained in:
@@ -19,6 +19,7 @@ message Server {
|
||||
int64 createdAt = 7;
|
||||
string dnsName = 19;
|
||||
bool supportCNAME = 23;
|
||||
int64 userPlanId = 24;
|
||||
|
||||
// 配置相关
|
||||
bytes config = 17;
|
||||
|
||||
@@ -134,6 +134,9 @@ service ServerService {
|
||||
|
||||
// 设置带宽限制
|
||||
rpc updateServerBandwidthLimit(UpdateServerBandwidthLimitRequest) returns (RPCSuccess);
|
||||
|
||||
// 修改服务套餐
|
||||
rpc updateServerUserPlan(UpdateServerUserPlanRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 创建服务
|
||||
@@ -155,6 +158,7 @@ message CreateServerRequest {
|
||||
int64 webId = 15;
|
||||
bytes reverseProxyJSON = 16;
|
||||
repeated int64 serverGroupIds = 17;
|
||||
int64 userPlanId = 18;
|
||||
|
||||
int64 nodeClusterId = 30;
|
||||
bytes includeNodesJSON = 31;
|
||||
@@ -529,4 +533,10 @@ message FindEnabledServerBandwidthLimitResponse {
|
||||
message UpdateServerBandwidthLimitRequest {
|
||||
int64 serverId = 1;
|
||||
bytes bandwidthLimitJSON = 2;
|
||||
}
|
||||
|
||||
// 修改服务套餐
|
||||
message UpdateServerUserPlanRequest {
|
||||
int64 serverId = 1;
|
||||
int64 userPlanId = 2;
|
||||
}
|
||||
@@ -28,6 +28,9 @@ service UserPlanService {
|
||||
|
||||
// 列出单页已购套餐
|
||||
rpc listEnabledUserPlans(ListEnabledUserPlansRequest) returns (ListEnabledUserPlansResponse);
|
||||
|
||||
// 查找所有服务可用的套餐
|
||||
rpc findAllEnabledUserPlansForServer(FindAllEnabledUserPlansForServerRequest) returns (FindAllEnabledUserPlansForServerResponse);
|
||||
}
|
||||
|
||||
// 添加已购套餐
|
||||
@@ -93,4 +96,14 @@ message ListEnabledUserPlansRequest {
|
||||
|
||||
message ListEnabledUserPlansResponse {
|
||||
repeated UserPlan userPlans = 1;
|
||||
}
|
||||
|
||||
// 查找所有服务可用的套餐
|
||||
message FindAllEnabledUserPlansForServerRequest {
|
||||
int64 userId = 1;
|
||||
int64 serverId = 2;
|
||||
}
|
||||
|
||||
message FindAllEnabledUserPlansForServerResponse {
|
||||
repeated UserPlan userPlans = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user