Added location for aps.

This commit is contained in:
Dejwut 2023-05-17 03:44:53 +02:00
parent 0c6ee07e24
commit 5cb47c7c2f
2 changed files with 4 additions and 2 deletions

View File

@ -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
} }

View File

@ -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 {