Added location for aps.
This commit is contained in:
parent
0c6ee07e24
commit
5cb47c7c2f
@ -37,9 +37,10 @@ func ApsQuery() []Ap {
|
|||||||
bruh int
|
bruh int
|
||||||
name string
|
name string
|
||||||
uwec int
|
uwec int
|
||||||
|
location string
|
||||||
)
|
)
|
||||||
rows.Scan(&uwec, &ip, &name, &bruh)
|
rows.Scan(&uwec, &ip, &name, &bruh, &location)
|
||||||
array = append(array, Ap{ip, name, bruh})
|
array = append(array, Ap{ip, name, bruh, location})
|
||||||
}
|
}
|
||||||
return array
|
return array
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ type Ap struct {
|
|||||||
IP string
|
IP string
|
||||||
Name string
|
Name string
|
||||||
Type int
|
Type int
|
||||||
|
Location string
|
||||||
}
|
}
|
||||||
|
|
||||||
type ApModel struct {
|
type ApModel struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user