Documentation ¶
Overview ¶
Package mtop 包含手机淘宝API相关结构体
Index ¶
- func ReleaseTaobaoMtopUploadTokenGetAPIRequest(v *TaobaoMtopUploadTokenGetAPIRequest)
- func ReleaseTaobaoMtopUploadTokenGetAPIResponse(v *TaobaoMtopUploadTokenGetAPIResponse)
- func ReleaseUploadTokenRequestV(v *UploadTokenRequestV)
- type TaobaoMtopUploadTokenGetAPIRequest
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiMethodName() string
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest() *UploadTokenRequestV
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetRawParams() model.Params
- func (r *TaobaoMtopUploadTokenGetAPIRequest) Reset()
- func (r *TaobaoMtopUploadTokenGetAPIRequest) SetParamUploadTokenRequest(_paramUploadTokenRequest *UploadTokenRequestV) error
- type TaobaoMtopUploadTokenGetAPIResponse
- type TaobaoMtopUploadTokenGetAPIResponseModel
- type UploadTokenRequestV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseTaobaoMtopUploadTokenGetAPIRequest ¶ added in v1.3.4
func ReleaseTaobaoMtopUploadTokenGetAPIRequest(v *TaobaoMtopUploadTokenGetAPIRequest)
ReleaseTaobaoMtopUploadTokenGetAPIRequest 将 TaobaoMtopUploadTokenGetAPIRequest 放入 sync.Pool
func ReleaseTaobaoMtopUploadTokenGetAPIResponse ¶ added in v1.3.4
func ReleaseTaobaoMtopUploadTokenGetAPIResponse(v *TaobaoMtopUploadTokenGetAPIResponse)
ReleaseTaobaoMtopUploadTokenGetAPIResponse 将 TaobaoMtopUploadTokenGetAPIResponse 保存到 sync.Pool
func ReleaseUploadTokenRequestV ¶ added in v1.3.4
func ReleaseUploadTokenRequestV(v *UploadTokenRequestV)
ReleaseUploadTokenRequestV 释放UploadTokenRequestV
Types ¶
type TaobaoMtopUploadTokenGetAPIRequest ¶ added in v1.2.0
type TaobaoMtopUploadTokenGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoMtopUploadTokenGetAPIRequest 获取文件上传授权 API请求 taobao.mtop.upload.token.get
获取mtop文件上传授权
func GetTaobaoMtopUploadTokenGetAPIRequest ¶ added in v1.3.4
func GetTaobaoMtopUploadTokenGetAPIRequest() *TaobaoMtopUploadTokenGetAPIRequest
GetTaobaoMtopUploadTokenGetRequest 从 sync.Pool 获取 TaobaoMtopUploadTokenGetAPIRequest
func NewTaobaoMtopUploadTokenGetRequest ¶
func NewTaobaoMtopUploadTokenGetRequest() *TaobaoMtopUploadTokenGetAPIRequest
NewTaobaoMtopUploadTokenGetRequest 初始化TaobaoMtopUploadTokenGetAPIRequest对象
func (TaobaoMtopUploadTokenGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoMtopUploadTokenGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest ¶ added in v1.2.0
func (r TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest() *UploadTokenRequestV
GetParamUploadTokenRequest ParamUploadTokenRequest Getter
func (TaobaoMtopUploadTokenGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoMtopUploadTokenGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoMtopUploadTokenGetAPIRequest) Reset ¶ added in v1.3.4
func (r *TaobaoMtopUploadTokenGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*TaobaoMtopUploadTokenGetAPIRequest) SetParamUploadTokenRequest ¶ added in v1.2.0
func (r *TaobaoMtopUploadTokenGetAPIRequest) SetParamUploadTokenRequest(_paramUploadTokenRequest *UploadTokenRequestV) error
SetParamUploadTokenRequest is ParamUploadTokenRequest Setter 系统自动生成
type TaobaoMtopUploadTokenGetAPIResponse ¶
type TaobaoMtopUploadTokenGetAPIResponse struct { model.CommonResponse TaobaoMtopUploadTokenGetAPIResponseModel }
TaobaoMtopUploadTokenGetAPIResponse 获取文件上传授权 API返回值 taobao.mtop.upload.token.get
获取mtop文件上传授权
func GetTaobaoMtopUploadTokenGetAPIResponse ¶ added in v1.3.4
func GetTaobaoMtopUploadTokenGetAPIResponse() *TaobaoMtopUploadTokenGetAPIResponse
GetTaobaoMtopUploadTokenGetAPIResponse 从 sync.Pool 获取 TaobaoMtopUploadTokenGetAPIResponse
func (*TaobaoMtopUploadTokenGetAPIResponse) Reset ¶ added in v1.3.4
func (m *TaobaoMtopUploadTokenGetAPIResponse) Reset()
Reset 清空结构体
type TaobaoMtopUploadTokenGetAPIResponseModel ¶ added in v1.2.0
type TaobaoMtopUploadTokenGetAPIResponseModel struct { XMLName xml.Name `xml:"mtop_upload_token_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // msg Message string `json:"message,omitempty" xml:"message,omitempty"` // code Code string `json:"code,omitempty" xml:"code,omitempty"` // 本次指定的上传文件服务器地址 ServerAddress string `json:"server_address,omitempty" xml:"server_address,omitempty"` // 颁发的上传令牌 Token string `json:"token,omitempty" xml:"token,omitempty"` // 单次上传文件块最大大小,单位 byte MaxBodyLength int64 `json:"max_body_length,omitempty" xml:"max_body_length,omitempty"` // 单个文件重试上传次数 MaxRetryTimes int64 `json:"max_retry_times,omitempty" xml:"max_retry_times,omitempty"` // token失效时间点 Timeout int64 `json:"timeout,omitempty" xml:"timeout,omitempty"` }
TaobaoMtopUploadTokenGetAPIResponseModel is 获取文件上传授权 成功返回结果
func (*TaobaoMtopUploadTokenGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *TaobaoMtopUploadTokenGetAPIResponseModel) Reset()
Reset 清空结构体
type UploadTokenRequestV ¶
type UploadTokenRequestV struct { // 自定义数据 PrivateData string `json:"private_data,omitempty" xml:"private_data,omitempty"` // 上传类型:resumable 或 normal UploadType string `json:"upload_type,omitempty" xml:"upload_type,omitempty"` // 客户端网络类型 wifi 或 2g 或 3g 或 cdma 或 gprs ClientNetType string `json:"client_net_type,omitempty" xml:"client_net_type,omitempty"` // 文件名 FileName string `json:"file_name,omitempty" xml:"file_name,omitempty"` // 多媒体中心分配的业务码, mtopupload或其他 BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` // 文件大小,单位byte FileSize int64 `json:"file_size,omitempty" xml:"file_size,omitempty"` // 文件内容的CRC32校验和 Crc int64 `json:"crc,omitempty" xml:"crc,omitempty"` }
UploadTokenRequestV 结构体
func GetUploadTokenRequestV ¶ added in v1.3.4
func GetUploadTokenRequestV() *UploadTokenRequestV
GetUploadTokenRequestV() 从对象池中获取UploadTokenRequestV