完善订单、DNS套餐服务API

This commit is contained in:
刘祥超
2022-09-29 19:21:35 +08:00
parent 10ea8911bc
commit b85016d6c9
6 changed files with 4002 additions and 3840 deletions

View File

@@ -25,6 +25,9 @@ service NSUserPlanService {
// 列出单页套餐
rpc listNSUserPlans(ListNSUserPlansRequest) returns (ListNSUserPlansResponse);
// 使用余额购买用户套餐
rpc buyNSUserPlan(BuyNSUserPlanRequest) returns (BuyNSUserPlanResponse);
}
// 创建用户套餐
@@ -86,4 +89,16 @@ message ListNSUserPlansRequest {
message ListNSUserPlansResponse {
repeated NSUserPlan nsUserPlans = 1;
}
// 使用余额购买用户套餐
message BuyNSUserPlanRequest{
int64 userId = 1;
int64 planId = 2;
string period = 3;
}
message BuyNSUserPlanResponse {
int64 userPlanId = 1;
}