代码拉取完成,页面将自动刷新
package pet
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-swagger/go-swagger/httpkit"
"github.com/go-swagger/go-swagger/examples/generated/models"
)
/*UploadFileOK successful operation
swagger:response uploadFileOK
*/
type UploadFileOK struct {
// In: body
Payload *models.APIResponse `json:"body,omitempty"`
}
// NewUploadFileOK creates UploadFileOK with default headers values
func NewUploadFileOK() UploadFileOK {
return UploadFileOK{}
}
// WithPayload adds the payload to the upload file o k response
func (o *UploadFileOK) WithPayload(payload *models.APIResponse) *UploadFileOK {
o.Payload = payload
return o
}
// WriteResponse to the client
func (o *UploadFileOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer) {
rw.WriteHeader(200)
if o.Payload != nil {
if err := producer.Produce(rw, o.Payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。