refactor: 重命名 connection -> session

This commit is contained in:
2024-08-26 14:41:57 +08:00
parent a6cc98a32b
commit 82d3f99404
7 changed files with 31 additions and 33 deletions

View File

@ -12,7 +12,7 @@ func ONVIFDeviceDiscovery(c *gin.Context) {
}
arr := make([]ZBXDevice, 0)
for xaddr := range onvif.Conns {
for xaddr := range onvif.Sessions {
arr = append(arr, ZBXDevice{
Xaddr: xaddr,
})