IP库阶段性提交(未完成)

This commit is contained in:
刘祥超
2022-08-14 19:42:05 +08:00
parent debf4a5249
commit ec02d83ee6
15 changed files with 5117 additions and 3512 deletions

View File

@@ -9,25 +9,39 @@ import "models/model_ip_library.proto";
// IP库
service IPLibraryService {
// 创建IP库
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse);
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse) {
option deprecated = true;
};
// 查找最新的IP库
rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse);
rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse) {
option deprecated = true;
};
// 查找单个IP库
rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse);
rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse) {
option deprecated = true;
};
// 列出某个类型的所有IP库
rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse);
rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse) {
option deprecated = true;
};
// 删除IP库
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess);
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess) {
option deprecated = true;
};
// 查询某个IP信息
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse);
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse) {
option deprecated = true;
};
// 查询一组IP信息
rpc lookupIPRegions (LookupIPRegionsRequest) returns (LookupIPRegionsResponse);
rpc lookupIPRegions (LookupIPRegionsRequest) returns (LookupIPRegionsResponse) {
option deprecated = true;
};
}
// 创建IP库