mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-25 04:10:55 +08:00
支持购买套餐/续费套餐/用户账户操作等
This commit is contained in:
45
pkg/rpc/protos/service_user_account_daily_stat.proto
Normal file
45
pkg/rpc/protos/service_user_account_daily_stat.proto
Normal file
@@ -0,0 +1,45 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 用户账户统计服务
|
||||
service UserAccountDailyStatService {
|
||||
// 列出按天统计
|
||||
rpc listUserAccountDailyStats(ListUserAccountDailyStatsRequest) returns (ListUserAccountDailyStatsResponse);
|
||||
|
||||
// 列出按月统计
|
||||
rpc listUserAccountMonthlyStats(ListUserAccountMonthlyStatsRequest) returns (ListUserAccountMonthlyStatsResponse);
|
||||
}
|
||||
|
||||
// 列出按天统计
|
||||
message ListUserAccountDailyStatsRequest {
|
||||
string dayFrom = 1;
|
||||
string dayTo = 2;
|
||||
}
|
||||
|
||||
message ListUserAccountDailyStatsResponse {
|
||||
repeated Stat stats = 1;
|
||||
|
||||
message Stat {
|
||||
string day = 1; // YYYYMMDD
|
||||
float income = 2;
|
||||
float expense = 3;
|
||||
}
|
||||
}
|
||||
|
||||
// 列出按月统计
|
||||
message ListUserAccountMonthlyStatsRequest {
|
||||
string dayFrom = 1;
|
||||
string dayTo = 2;
|
||||
}
|
||||
|
||||
message ListUserAccountMonthlyStatsResponse {
|
||||
repeated Stat stats = 1;
|
||||
|
||||
message Stat {
|
||||
string month = 1; // YYYYMM
|
||||
float income = 2;
|
||||
float expense = 3;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user