方法列表
计算账户数量
admin
RPC
countUserAccounts (CountUserAccountsRequest) returns (RPCCountResponse)
HTTP
POST /UserAccountService/countUserAccounts
输入对象:CountUserAccountsRequest:
{ // 关键词 string keyword; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页账户
admin
RPC
listUserAccounts (ListUserAccountsRequest) returns (ListUserAccountsResponse)
HTTP
POST /UserAccountService/listUserAccounts
输入对象:ListUserAccountsRequest:
{ // 关键词 string keyword; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListUserAccountsResponse:
{ // 用户账户列表 []UserAccount userAccounts; }
根据用户ID查找单个账户
admin
user
RPC
findEnabledUserAccountWithUserId (FindEnabledUserAccountWithUserIdRequest) returns (FindEnabledUserAccountWithUserIdResponse)
HTTP
POST /UserAccountService/findEnabledUserAccountWithUserId
输入对象:FindEnabledUserAccountWithUserIdRequest:
{ // 用户ID int64 userId; }
输出对象:FindEnabledUserAccountWithUserIdResponse:
{ // 用户账户 UserAccount userAccount; }
查找单个账户
admin
user
RPC
findEnabledUserAccount (FindEnabledUserAccountRequest) returns (FindEnabledUserAccountResponse)
HTTP
POST /UserAccountService/findEnabledUserAccount
输入对象:FindEnabledUserAccountRequest:
{ // 用户账户ID int64 userAccountId; }
输出对象:FindEnabledUserAccountResponse:
{ // 用户账户 UserAccount userAccount; }
修改用户账户
admin
RPC
updateUserAccount (UpdateUserAccountRequest) returns (RPCSuccess)
HTTP
POST /UserAccountService/updateUserAccount
输入对象:UpdateUserAccountRequest:
{ // 用户账户ID(非用户ID) int64 userAccountId; // 操作的数值,正值表示增加,负值表示减少 double delta; // 事件类型:charge, award, buyPlan, payBill, refund, withdraw, buyNSPlan, buyTrafficPackage, buyAntiDDoSPackage, renewAntiDDoSPackage string eventType; // 描述 string description; // 相关参数 bytes paramsJSON; }
输出对象:RPCSuccess:
{ }