Documentation ¶
Overview ¶
Package model SDK models
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"` // 返回信息 Data json.RawMessage `json:"data,omitempty"` // JSON返回值 TraceId string `json:"traceId,omitempty"` // 请求id }
BaseResponse shared response data struct
func (BaseResponse) IsError ¶
func (r BaseResponse) IsError() bool
IsError detect if the response is an error
type GetRequest ¶
GetRequest request interface for get
type PostRequest ¶
PostRequest request interface for post
type ReportResponse ¶
type ReportResponse struct { Code int `json:"code,omitempty"` // 返回码 Message string `json:"message,omitempty"` // 返回信息 Data []order.ReportData `json:"data,omitempty"` // JSON返回值 TraceId string `json:"traceId,omitempty"` // 请求id LastUpdateTime string `json:"lastUpdateTime,omitempty"` TotalCount int `json:"totalCount,omitempty"` }
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 { Url() string // Encode encode request to UploadFields Encode() []UploadField }
UploadRequest multipart/form-data reqeust interface
Click to show internal directories.
Click to hide internal directories.