mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-15 13:26:35 +08:00
实现带宽计费套餐
This commit is contained in:
34
pkg/rpc/protos/service_server_bill.proto
Normal file
34
pkg/rpc/protos/service_server_bill.proto
Normal file
@@ -0,0 +1,34 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_server_bill.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 服务账单相关服务
|
||||
service ServerBillService {
|
||||
// 查询服务账单数量
|
||||
rpc countAllServerBills(CountAllServerBillsRequest) returns (RPCCountResponse);
|
||||
|
||||
// 查询服务账单列表
|
||||
rpc listServerBills(ListServerBillsRequest) returns (ListServerBillsResponse);
|
||||
}
|
||||
|
||||
// 查询服务账单数量
|
||||
message CountAllServerBillsRequest {
|
||||
int64 userId = 1;
|
||||
string month = 2;
|
||||
}
|
||||
|
||||
// 查询服务账单列表
|
||||
message ListServerBillsRequest {
|
||||
int64 userId = 1;
|
||||
string month = 2;
|
||||
int64 offset = 3;
|
||||
int64 size = 4;
|
||||
}
|
||||
|
||||
message ListServerBillsResponse {
|
||||
repeated ServerBill serverBills = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user