refactor(router): 改为结构化 web 项目

This commit is contained in:
2024-08-22 10:18:23 +08:00
parent 7047d896f8
commit 9ba49e0742
10 changed files with 214 additions and 225 deletions

18
service/onvif/device.go Normal file
View File

@ -0,0 +1,18 @@
package onvif
import "github.com/IOTechSystems/onvif/device"
func (c *Connection) GetDeviceInformation() (*device.GetDeviceInformationResponse, error) {
resp, err := c.Device.CallMethod(device.GetDeviceInformation{})
if err != nil {
return nil, err
}
result := &device.GetDeviceInformationResponse{}
err = unmarshalResponse(resp, result)
if err != nil {
return nil, err
}
return result, nil
}