mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 09:45:21 +00:00
dac2cb5994
Also switch to valitydev/rebar3-thrift-compiler 0.4 / valitydev/thrift 0.14.2.3
25 lines
661 B
Thrift
25 lines
661 B
Thrift
include "base.thrift"
|
|
include "domain.thrift"
|
|
|
|
// moved to https://github.com/valitydev/columbus-proto
|
|
|
|
namespace java dev.vality.damsel.columbus
|
|
namespace erlang dmsl.columbus
|
|
|
|
/**
|
|
* Идентификатор места по базе http://www.geonames.org/
|
|
**/
|
|
typedef i32 GeoID
|
|
|
|
const GeoID GEO_ID_UNKNOWN = -1
|
|
|
|
struct LocationInfo {
|
|
// GeoID города
|
|
1: required GeoID city_geo_id;
|
|
// GeoID страны
|
|
2: required GeoID country_geo_id;
|
|
// Полное описание локации в json
|
|
// подробное описание на сайте https://www.maxmind.com/en/geoip2-city
|
|
3: optional string raw_response;
|
|
}
|