post_object

package
v7.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

在一次 HTTP 会话中上传单一的一个文件

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	ObjectName   *string
	UploadToken  uptoken.Provider
	Crc32        int64
	File         httpclient.MultipartFormBinaryData
	CustomData   map[string]string
	ResponseBody interface{} // 响应体,如果为空,则 Response.Body 的类型由 encoding/json 库决定
}

调用 API 所用的请求

type Response

type Response struct {
	Body interface{}
}

获取 API 所用的响应

func (*Response) MarshalJSON

func (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL