refactor(router): 改为结构化 web 项目
This commit is contained in:
18
service/onvif/device.go
Normal file
18
service/onvif/device.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user