mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-29 22:36:36 +08:00
访问日志增加区域和ISP信息
This commit is contained in:
@@ -22,6 +22,9 @@ service IPLibraryService {
|
||||
|
||||
// 删除IP库
|
||||
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCDeleteSuccess);
|
||||
|
||||
// 查询某个IP信息
|
||||
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse);
|
||||
}
|
||||
|
||||
// 创建IP库
|
||||
@@ -64,4 +67,22 @@ message FindAllEnabledIPLibrariesWithTypeResponse {
|
||||
// 删除IP库
|
||||
message DeleteIPLibraryRequest {
|
||||
int64 ipLibraryId = 1;
|
||||
}
|
||||
|
||||
// 查询某个IP信息
|
||||
message LookupIPRegionRequest {
|
||||
string ip = 1;
|
||||
}
|
||||
|
||||
message LookupIPRegionResponse {
|
||||
IPRegion region = 1;
|
||||
}
|
||||
|
||||
// IP信息
|
||||
message IPRegion {
|
||||
string country = 1;
|
||||
string region = 2;
|
||||
string province = 3;
|
||||
string city = 4;
|
||||
string isp = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user