Documentation ¶
Overview ¶
Package mtop 包含手机淘宝API相关结构体
Index ¶
- type TaobaoMtopUploadTokenGetAPIRequest
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiMethodName() string
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiParams() url.Values
- func (r TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest() *UploadTokenRequestV
- func (r *TaobaoMtopUploadTokenGetAPIRequest) SetParamUploadTokenRequest(_paramUploadTokenRequest *UploadTokenRequestV) error
- type TaobaoMtopUploadTokenGetAPIResponse
- type TaobaoMtopUploadTokenGetAPIResponseModel
- type UploadTokenRequestV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 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() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest ¶ added in v1.2.0
func (r TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest() *UploadTokenRequestV
GetParamUploadTokenRequest ParamUploadTokenRequest Getter
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文件上传授权
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 获取文件上传授权 成功返回结果
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 结构体
Click to show internal directories.
Click to hide internal directories.