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