Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` RequestId string `json:"request_id,omitempty"` }
BaseResponse 通用返回格式
type GetRequest ¶
type GetRequest interface { // Encode encode request to string Encode() string }
GetRequest get request interface
type PostRequest ¶
type PostRequest interface { // Encode encode request to bytes Encode() []byte }
PostRequest post request interface
type UploadField ¶
type UploadField struct { // Key field key Key string // Value field value Value string // Reader upload file reader Reader io.Reader }
UploadField multipart/form-data post request field struct
type UploadRequest ¶
type UploadRequest interface { // Encode encode request to UploadFields Encode() []UploadField }
UploadRequest multipart/form-data reqeust interface
Click to show internal directories.
Click to hide internal directories.