mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-14 00:53:30 +00:00
added handler for getting uid in postGeoObject endpoint
This commit is contained in:
@@ -30,6 +30,7 @@ func armatak_service_ManageGeoObject_postGeoObject(args []string) (string, error
|
|||||||
}
|
}
|
||||||
|
|
||||||
payload := GeoObject{
|
payload := GeoObject{
|
||||||
|
UID: args[0],
|
||||||
Longitude: longitude,
|
Longitude: longitude,
|
||||||
Latitude: latitude,
|
Latitude: latitude,
|
||||||
Attitude: args[3],
|
Attitude: args[3],
|
||||||
@@ -64,8 +65,14 @@ func armatak_service_ManageGeoObject_putGeoObject(args []string) (string, error)
|
|||||||
bearing = 0
|
bearing = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uid := ""
|
||||||
|
|
||||||
|
if args[0] != "<null>" {
|
||||||
|
uid = args[0]
|
||||||
|
}
|
||||||
|
|
||||||
payload := GeoObject{
|
payload := GeoObject{
|
||||||
UID: args[0],
|
UID: uid,
|
||||||
Longitude: longitude,
|
Longitude: longitude,
|
||||||
Latitude: latitude,
|
Latitude: latitude,
|
||||||
Attitude: args[3],
|
Attitude: args[3],
|
||||||
|
|||||||
Reference in New Issue
Block a user