mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-15 14:10:26 +08:00
29 lines
679 B
Protocol Buffer
29 lines
679 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = "./pb";
|
|
|
|
package pb;
|
|
|
|
import "models/model_region_country.proto";
|
|
|
|
// 地区月份统计
|
|
service ServerRegionCountryMonthlyStatService {
|
|
// 查找前N个地区
|
|
rpc findTopServerRegionCountryMonthlyStats (FindTopServerRegionCountryMonthlyStatsRequest) returns (FindTopServerRegionCountryMonthlyStatsResponse);
|
|
}
|
|
|
|
// 查找前N个城市
|
|
message FindTopServerRegionCountryMonthlyStatsRequest {
|
|
string month = 1; // YYYYMM
|
|
int64 serverId = 2;
|
|
int64 offset = 3;
|
|
int64 size = 4;
|
|
}
|
|
|
|
message FindTopServerRegionCountryMonthlyStatsResponse {
|
|
repeated Stat stats = 1;
|
|
|
|
message Stat {
|
|
RegionCountry regionCountry = 1;
|
|
int64 count = 2;
|
|
}
|
|
} |