方法列表
手工生成账单
admin
RPC
generateAllUserBills (GenerateAllUserBillsRequest) returns (RPCSuccess)
HTTP
POST /UserBillService/generateAllUserBills
输入对象:GenerateAllUserBillsRequest:
输出对象:RPCSuccess:
{ }
计算所有账单数量
admin
user
RPC
countAllUserBills (CountAllUserBillsRequest) returns (RPCCountResponse)
HTTP
POST /UserBillService/countAllUserBills
输入对象:CountAllUserBillsRequest:
{ // 可选,0|1|-1 int32 paidFlag; // 可选,用户ID int64 userId; // 可选,月份 string month; // 可选,是否为流量带宽相关 bool trafficRelated; // 可选,按日计费账单生成最小天数 int32 minDailyBillDays; // 可选,按月计费账单生成最小天数 int32 minMonthlyBillDays; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页账单
admin
user
RPC
listUserBills (ListUserBillsRequest) returns (ListUserBillsResponse)
HTTP
POST /UserBillService/listUserBills
输入对象:ListUserBillsRequest:
{ int32 paidFlag; // 用户ID int64 userId; string month; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListUserBillsResponse:
查找账单信息
admin
user
RPC
findUserBill (FindUserBillRequest) returns (FindUserBillResponse)
HTTP
POST /UserBillService/findUserBill
输入对象:FindUserBillRequest:
{ // ID,和单号二选一 int64 userBillId; // 单号 string code; }
输出对象:FindUserBillResponse:
支付账单
admin
user
RPC
payUserBill (PayUserBillRequest) returns (RPCSuccess)
HTTP
POST /UserBillService/payUserBill
输入对象:PayUserBillRequest:
输出对象:RPCSuccess:
{ }
计算用户所有未支付账单总额
admin
user
RPC
sumUserUnpaidBills (SumUserUnpaidBillsRequest) returns (SumUserUnpaidBillsResponse)
HTTP
POST /UserBillService/sumUserUnpaidBills
输入对象:SumUserUnpaidBillsRequest:
{ // 用户ID int64 userId; }
输出对象:SumUserUnpaidBillsResponse: