mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-28 21:46:37 +08:00
新版IP库管理阶段性提交(未完成)
This commit is contained in:
34
pkg/rpc/protos/models/model_ip_library_file.proto
Normal file
34
pkg/rpc/protos/models/model_ip_library_file.proto
Normal file
@@ -0,0 +1,34 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
message IPLibraryFile {
|
||||
int64 id = 1;
|
||||
int64 fileId = 2;
|
||||
bool isFinished = 3;
|
||||
int64 createdAt = 4;
|
||||
repeated string countryNames = 5;
|
||||
repeated Province provinces = 6;
|
||||
repeated City cities = 7;
|
||||
repeated Town towns = 8;
|
||||
repeated string providerNames = 9;
|
||||
|
||||
message Province {
|
||||
string countryName = 1;
|
||||
string provinceName = 2;
|
||||
}
|
||||
|
||||
message City {
|
||||
string countryName = 1;
|
||||
string provinceName = 2;
|
||||
string cityName = 3;
|
||||
}
|
||||
|
||||
message Town {
|
||||
string countryName = 1;
|
||||
string provinceName = 2;
|
||||
string cityName = 3;
|
||||
string townName = 4;
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,9 @@ message RegionCity {
|
||||
string name = 2;
|
||||
repeated string codes = 3;
|
||||
int64 regionProvinceId = 4;
|
||||
string customName = 5;
|
||||
repeated string customCodes = 6;
|
||||
string displayName = 7;
|
||||
|
||||
RegionProvince regionProvince = 30;
|
||||
}
|
||||
|
||||
@@ -8,4 +8,7 @@ message RegionCountry {
|
||||
string name = 2;
|
||||
repeated string codes = 3;
|
||||
repeated string pinyin = 4;
|
||||
string customName = 5;
|
||||
repeated string customCodes = 6;
|
||||
string displayName = 7;
|
||||
}
|
||||
@@ -7,4 +7,7 @@ message RegionProvider {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
repeated string codes = 3;
|
||||
string customName = 4;
|
||||
repeated string customCodes = 5;
|
||||
string displayName = 6;
|
||||
}
|
||||
|
||||
@@ -7,4 +7,8 @@ message RegionProvince {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
repeated string codes = 3;
|
||||
int64 regionCountryId = 4;
|
||||
string customName = 5;
|
||||
repeated string customCodes = 6;
|
||||
string displayName = 7;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user