方法列表
创建用户套餐
admin
RPC
createNSUserPlan (CreateNSUserPlanRequest) returns (CreateNSUserPlanResponse)
HTTP
POST /NSUserPlanService/createNSUserPlan
输入对象:CreateNSUserPlanRequest:
{ // 用户ID int64 userId; int64 nsPlanId; // YYYYMMDD string dayFrom; // YYYYMMDD string dayTo; // yearly|monthly string periodUnit; }
输出对象:CreateNSUserPlanResponse:
修改用户套餐
admin
RPC
updateNSUserPlan (UpdateNSUserPlanRequest) returns (RPCSuccess)
HTTP
POST /NSUserPlanService/updateNSUserPlan
输入对象:UpdateNSUserPlanRequest:
{ int64 nsUserPlanId; int64 nsPlanId; // YYYYMMDD string dayFrom; // YYYYMMDD string dayTo; // yearly|monthly string periodUnit; }
输出对象:RPCSuccess:
{ }
删除用户套餐
admin
RPC
deleteNSUserPlan (DeleteNSUserPlanRequest) returns (RPCSuccess)
HTTP
POST /NSUserPlanService/deleteNSUserPlan
输入对象:DeleteNSUserPlanRequest:
输出对象:RPCSuccess:
{ }
读取用户套餐
admin
user
RPC
findNSUserPlan (FindNSUserPlanRequest) returns (FindNSUserPlanResponse)
HTTP
POST /NSUserPlanService/findNSUserPlan
输入对象:FindNSUserPlanRequest:
{ // 和 nsUserPlanId 二选一 int64 userId; int64 nsUserPlanId; }
输出对象:FindNSUserPlanResponse:
计算用户套餐数量
admin
RPC
countNSUserPlans (CountNSUserPlansRequest) returns (RPCCountResponse)
HTTP
POST /NSUserPlanService/countNSUserPlans
输入对象:CountNSUserPlansRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页套餐
admin
RPC
listNSUserPlans (ListNSUserPlansRequest) returns (ListNSUserPlansResponse)
HTTP
POST /NSUserPlanService/listNSUserPlans
输入对象:ListNSUserPlansRequest:
{ // 用户ID int64 userId; int64 nsPlanId; string periodUnit; bool isExpired; int32 expireDays; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListNSUserPlansResponse:
使用余额购买用户套餐
admin
RPC
buyNSUserPlan (BuyNSUserPlanRequest) returns (BuyNSUserPlanResponse)
HTTP
POST /NSUserPlanService/buyNSUserPlan
输入对象:BuyNSUserPlanRequest:
{ // 用户ID int64 userId; int64 planId; string period; }
输出对象:BuyNSUserPlanResponse: