套餐API增加查找套餐基本信息API

This commit is contained in:
刘祥超
2024-01-11 18:41:17 +08:00
parent 827eeeb506
commit 3bd3ef5f78
3 changed files with 325 additions and 139 deletions

View File

@@ -20,6 +20,9 @@ service PlanService {
// 查找单个套餐
rpc findEnabledPlan(FindEnabledPlanRequest) returns (FindEnabledPlanResponse);
// 查找套餐基本信息
rpc findBasicPlan(FindBasicPlanRequest) returns (FindBasicPlanResponse);
// 计算套餐数量
rpc countAllEnabledPlans(CountAllEnabledPlansRequest) returns (RPCCountResponse);
@@ -104,6 +107,15 @@ message FindEnabledPlanResponse {
Plan plan = 1; // 套餐信息
}
// 查找套餐基本信息
message FindBasicPlanRequest {
int64 planId = 1; // 套餐ID
}
message FindBasicPlanResponse {
Plan plan = 1; // 套餐信息(只读取基本信息)
}
// 计算套餐数量
message CountAllEnabledPlansRequest {