@miteradar/contracts 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,7 @@ service BiteService {
|
|
|
10
10
|
rpc ListBites(ListBitesRequest) returns (ListBitesResponse);
|
|
11
11
|
rpc UpdateBite(UpdateBiteRequest) returns (BiteResponse);
|
|
12
12
|
rpc DeleteBite(DeleteBiteRequest) returns (DeleteBiteResponse);
|
|
13
|
+
rpc GetBitesGeoData(GetBitesGeoDataRequest) returns (GetBitesGeoDataResponse);
|
|
13
14
|
|
|
14
15
|
rpc ListDistricts(ListReferencesRequest) returns (ListReferencesResponse);
|
|
15
16
|
rpc ListPlaces(ListReferencesRequest) returns (ListReferencesResponse);
|
|
@@ -123,6 +124,25 @@ message ListBitesResponse {
|
|
|
123
124
|
int32 page_size = 4;
|
|
124
125
|
}
|
|
125
126
|
|
|
127
|
+
message GetBitesGeoDataRequest {
|
|
128
|
+
repeated string id = 1;
|
|
129
|
+
optional double longitude_from = 2;
|
|
130
|
+
optional double longitude_to = 3;
|
|
131
|
+
optional double latitude_from = 4;
|
|
132
|
+
optional double latitude_to = 5;
|
|
133
|
+
optional double zoom = 6;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message GetBitesGeoDataResponse {
|
|
137
|
+
repeated BiteGeoData bites = 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message BiteGeoData {
|
|
141
|
+
string id = 1;
|
|
142
|
+
double longitude = 2;
|
|
143
|
+
double latitude = 3;
|
|
144
|
+
}
|
|
145
|
+
|
|
126
146
|
message ListReferencesRequest {
|
|
127
147
|
optional string search = 1;
|
|
128
148
|
}
|