1 Star 0 Fork 0

南京未来物联科技有限公司/fn-onvif

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
SetRemoteUser_auto.go 967 Bytes
Copy Edit Raw Blame History
lan_xin2578 authored 2023-07-12 19:49 +08:00 . [fix]优化
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"gitee.com/fnaiot/fn-onvif"
"gitee.com/fnaiot/fn-onvif/device"
"gitee.com/fnaiot/fn-onvif/sdk"
"github.com/juju/errors"
)
// Call_SetRemoteUser forwards the call to dev.CallMethod() then parses the payload of the reply as a SetRemoteUserResponse.
func Call_SetRemoteUser(ctx context.Context, dev *onvif.Device, request device.SetRemoteUser) (device.SetRemoteUserResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetRemoteUserResponse device.SetRemoteUserResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetRemoteUserResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetRemoteUser")
return reply.Body.SetRemoteUserResponse, errors.Annotate(err, "reply")
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fnaiot/fn-onvif.git
git@gitee.com:fnaiot/fn-onvif.git
fnaiot
fn-onvif
fn-onvif
v1.0.0

Search