方法列表
购买套餐
admin
user
RPC
buyUserPlan (BuyUserPlanRequest) returns (BuyUserPlanResponse)
HTTP
POST /UserPlanService/buyUserPlan
输入对象:BuyUserPlanRequest:
输出对象:BuyUserPlanResponse:
续费套餐
admin
user
RPC
renewUserPlan (RenewUserPlanRequest) returns (RPCSuccess)
HTTP
POST /UserPlanService/renewUserPlan
输入对象:RenewUserPlanRequest:
输出对象:RPCSuccess:
{ }
查找单个已购套餐信息
admin
user
RPC
findEnabledUserPlan (FindEnabledUserPlanRequest) returns (FindEnabledUserPlanResponse)
HTTP
POST /UserPlanService/findEnabledUserPlan
输入对象:FindEnabledUserPlanRequest:
输出对象:FindEnabledUserPlanResponse:
修改已购套餐
admin
RPC
updateUserPlan (UpdateUserPlanRequest) returns (RPCSuccess)
HTTP
POST /UserPlanService/updateUserPlan
输入对象:UpdateUserPlanRequest:
{ int64 userPlanId; int64 planId; string dayTo; // 是否启用 bool isOn; // 名称 string name; }
输出对象:RPCSuccess:
{ }
删除已购套餐
admin
user
RPC
deleteUserPlan (DeleteUserPlanRequest) returns (RPCSuccess)
HTTP
POST /UserPlanService/deleteUserPlan
输入对象:DeleteUserPlanRequest:
输出对象:RPCSuccess:
{ }
计算已购套餐数
admin
user
RPC
countAllEnabledUserPlans (CountAllEnabledUserPlansRequest) returns (RPCCountResponse)
HTTP
POST /UserPlanService/countAllEnabledUserPlans
输入对象:CountAllEnabledUserPlansRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页已购套餐
admin
user
RPC
listEnabledUserPlans (ListEnabledUserPlansRequest) returns (ListEnabledUserPlansResponse)
HTTP
POST /UserPlanService/listEnabledUserPlans
输入对象:ListEnabledUserPlansRequest:
{ bool isAvailable; bool isExpired; int32 expiringDays; // 用户ID int64 userId; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListEnabledUserPlansResponse:
查找所有服务可用的套餐
admin
user
RPC
findAllEnabledUserPlansForServer (FindAllEnabledUserPlansForServerRequest) returns (FindAllEnabledUserPlansForServerResponse)
HTTP
POST /UserPlanService/findAllEnabledUserPlansForServer
输入对象:FindAllEnabledUserPlansForServerRequest:
{ // 用户ID int64 userId; // 服务ID(网站ID) int64 serverId; }
输出对象:FindAllEnabledUserPlansForServerResponse: