summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
authors <[email protected]>2025-11-06 21:06:00 -0500
committers <[email protected]>2025-11-06 21:06:00 -0500
commitadf3c2d3005b4dddcea32486ddd1ed58d7ab75b3 (patch)
tree0954bfe03c023dc5ba38e3b0d575579b4c961dad /internal/models
parent6b3320ef9c5f21f8961686c4acb24678f1552685 (diff)
downloaddborg-adf3c2d3005b4dddcea32486ddd1ed58d7ab75b3.tar.gz
dborg-adf3c2d3005b4dddcea32486ddd1ed58d7ab75b3.zip
refactor: replace single map flag with separate google and osm options for bssid lookup
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/osint.go20
1 files changed, 9 insertions, 11 deletions
diff --git a/internal/models/osint.go b/internal/models/osint.go
index 7170c27..d403d57 100644
--- a/internal/models/osint.go
+++ b/internal/models/osint.go
@@ -1,9 +1,10 @@
package models
type BSSIDParams struct {
- BSSID string
- All bool
- Map bool
+ BSSID string
+ All bool
+ Google bool
+ OSM bool
}
type LocationInfo struct {
@@ -13,16 +14,13 @@ type LocationInfo struct {
}
type BSSIDResult struct {
- BSSID string `json:"bssid"`
- Location *LocationInfo `json:"location"`
- MapURL string `json:"map_url,omitempty"`
+ BSSID string `json:"bssid"`
+ Location *LocationInfo `json:"location"`
+ GoogleMap string `json:"google_map,omitempty"`
+ OpenStreetMap string `json:"openstreetmap,omitempty"`
}
-type BSSIDLookupResponse struct {
- BSSID string `json:"bssid"`
- Results []BSSIDResult `json:"results"`
- MapURL string `json:"map_url,omitempty"`
-}
+type BSSIDLookupResponse []BSSIDResult
type ErrorResponse struct {
Error string `json:"error"`