方法列表
创建用户流量包
admin
RPC
createUserTrafficPackage (CreateUserTrafficPackageRequest) returns (CreateUserTrafficPackageResponse)
HTTP
POST /UserTrafficPackageService/createUserTrafficPackage
输入对象:CreateUserTrafficPackageRequest:
输出对象:CreateUserTrafficPackageResponse:
购买用户流量包
admin
RPC
buyUserTrafficPackage (BuyUserTrafficPackageRequest) returns (BuyUserTrafficPackageResponse)
HTTP
POST /UserTrafficPackageService/buyUserTrafficPackage
输入对象:BuyUserTrafficPackageRequest:
输出对象:BuyUserTrafficPackageResponse:
查询当前流量包数量
admin
RPC
countUserTrafficPackages (CountUserTrafficPackagesRequest) returns (RPCCountResponse)
HTTP
POST /UserTrafficPackageService/countUserTrafficPackages
输入对象:CountUserTrafficPackagesRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页流量包
admin
RPC
listUserTrafficPackages (ListUserTrafficPackagesRequest) returns (ListUserTrafficPackagesResponse)
HTTP
POST /UserTrafficPackageService/listUserTrafficPackages
输入对象:ListUserTrafficPackagesRequest:
{ int64 trafficPackageId; // 用户ID int64 userId; int64 nodeRegionId; int64 trafficPackagePeriodId; string expiresDay; // 是否只查询有效的流量包 bool availableOnly; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListUserTrafficPackagesResponse:
删除流量包
admin
RPC
deleteUserTrafficPackage (DeleteUserTrafficPackageRequest) returns (RPCSuccess)
HTTP
POST /UserTrafficPackageService/deleteUserTrafficPackage
输入对象:DeleteUserTrafficPackageRequest:
输出对象:RPCSuccess:
{ }