代码拉取完成,页面将自动刷新
// 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_CreateCertificate forwards the call to dev.CallMethod() then parses the payload of the reply as a CreateCertificateResponse.
func Call_CreateCertificate(ctx context.Context, dev *onvif.Device, request device.CreateCertificate) (device.CreateCertificateResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
CreateCertificateResponse device.CreateCertificateResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.CreateCertificateResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "CreateCertificate")
return reply.Body.CreateCertificateResponse, errors.Annotate(err, "reply")
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。