mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-14 13:00:25 +08:00
支持套餐相关操作
This commit is contained in:
@@ -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