Documentation ¶
Overview ¶
Package miniapp 包含淘宝小程序API相关结构体
Index ¶
- type TaobaoMiniappCloudFunctionInvokeAPIRequest
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiMethodName() string
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiParams() url.Values
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetData() string
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetEnv() string
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetExts() string
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetHandler() string
- func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetName() string
- func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetData(_data string) error
- func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetEnv(_env string) error
- func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetExts(_exts string) error
- func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetHandler(_handler string) error
- func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetName(_name string) error
- type TaobaoMiniappCloudFunctionInvokeAPIResponse
- type TaobaoMiniappCloudFunctionInvokeAPIResponseModel
- type TaobaoMiniappCloudStoreRelationAddAPIRequest
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiMethodName() string
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiParams() url.Values
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetCloudPath() string
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetEnv() string
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetFileType() string
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetSpecialId() string
- func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetUrl() string
- func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetCloudPath(_cloudPath string) error
- func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetEnv(_env string) error
- func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetFileType(_fileType string) error
- func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetSpecialId(_specialId string) error
- func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetUrl(_url string) error
- type TaobaoMiniappCloudStoreRelationAddAPIResponse
- type TaobaoMiniappCloudStoreRelationAddAPIResponseModel
- type TaobaoSmartappSmartformDataWriteAPIRequest
- func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetApiMethodName() string
- func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetApiParams() url.Values
- func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetFormData() string
- func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetFormIdentifier() string
- func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetRecordId() string
- func (r *TaobaoSmartappSmartformDataWriteAPIRequest) SetFormData(_formData string) error
- func (r *TaobaoSmartappSmartformDataWriteAPIRequest) SetFormIdentifier(_formIdentifier string) error
- func (r *TaobaoSmartappSmartformDataWriteAPIRequest) SetRecordId(_recordId string) error
- type TaobaoSmartappSmartformDataWriteAPIResponse
- type TaobaoSmartappSmartformDataWriteAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaobaoMiniappCloudFunctionInvokeAPIRequest ¶ added in v1.2.0
type TaobaoMiniappCloudFunctionInvokeAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoMiniappCloudFunctionInvokeAPIRequest 外部触发云函数 API请求 taobao.miniapp.cloud.function.invoke
用户isv从外部触发聚石塔云函数的执行。
func NewTaobaoMiniappCloudFunctionInvokeRequest ¶
func NewTaobaoMiniappCloudFunctionInvokeRequest() *TaobaoMiniappCloudFunctionInvokeAPIRequest
NewTaobaoMiniappCloudFunctionInvokeRequest 初始化TaobaoMiniappCloudFunctionInvokeAPIRequest对象
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetData ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetData() string
GetData Data Getter
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetEnv ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetEnv() string
GetEnv Env Getter
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetExts ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetExts() string
GetExts Exts Getter
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetHandler ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetHandler() string
GetHandler Handler Getter
func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetName ¶ added in v1.2.0
func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetName() string
GetName Name Getter
func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetData ¶ added in v1.2.0
func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetData(_data string) error
SetData is Data Setter 调用云函数时的传参(JSON格式)
func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetEnv ¶ added in v1.2.0
func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetEnv(_env string) error
SetEnv is Env Setter 云环境
func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetExts ¶ added in v1.2.0
func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetExts(_exts string) error
SetExts is Exts Setter 扩展协议参数
func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetHandler ¶ added in v1.2.0
func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetHandler(_handler string) error
SetHandler is Handler Setter 指定云函数的handler
func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetName ¶ added in v1.2.0
func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetName(_name string) error
SetName is Name Setter 云函数名称
type TaobaoMiniappCloudFunctionInvokeAPIResponse ¶
type TaobaoMiniappCloudFunctionInvokeAPIResponse struct { model.CommonResponse TaobaoMiniappCloudFunctionInvokeAPIResponseModel }
TaobaoMiniappCloudFunctionInvokeAPIResponse 外部触发云函数 API返回值 taobao.miniapp.cloud.function.invoke
用户isv从外部触发聚石塔云函数的执行。
type TaobaoMiniappCloudFunctionInvokeAPIResponseModel ¶ added in v1.2.0
type TaobaoMiniappCloudFunctionInvokeAPIResponseModel struct { XMLName xml.Name `xml:"miniapp_cloud_function_invoke_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回参数,长度限制8个字符,超出部分会被截断 Data string `json:"data,omitempty" xml:"data,omitempty"` }
TaobaoMiniappCloudFunctionInvokeAPIResponseModel is 外部触发云函数 成功返回结果
type TaobaoMiniappCloudStoreRelationAddAPIRequest ¶ added in v1.2.0
type TaobaoMiniappCloudStoreRelationAddAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoMiniappCloudStoreRelationAddAPIRequest 云存储添加 API请求 taobao.miniapp.cloud.store.relation.add
用于用户上传文件之后回写云存储的关联关系
func NewTaobaoMiniappCloudStoreRelationAddRequest ¶
func NewTaobaoMiniappCloudStoreRelationAddRequest() *TaobaoMiniappCloudStoreRelationAddAPIRequest
NewTaobaoMiniappCloudStoreRelationAddRequest 初始化TaobaoMiniappCloudStoreRelationAddAPIRequest对象
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetCloudPath ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetCloudPath() string
GetCloudPath CloudPath Getter
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetEnv ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetEnv() string
GetEnv Env Getter
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetFileType ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetFileType() string
GetFileType FileType Getter
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetSpecialId ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetSpecialId() string
GetSpecialId SpecialId Getter
func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetUrl ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetUrl() string
GetUrl Url Getter
func (*TaobaoMiniappCloudStoreRelationAddAPIRequest) SetCloudPath ¶ added in v1.2.0
func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetCloudPath(_cloudPath string) error
SetCloudPath is CloudPath Setter 文件路径
func (*TaobaoMiniappCloudStoreRelationAddAPIRequest) SetEnv ¶ added in v1.2.0
func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetEnv(_env string) error
SetEnv is Env Setter 环境 test/online
func (*TaobaoMiniappCloudStoreRelationAddAPIRequest) SetFileType ¶ added in v1.2.0
func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetFileType(_fileType string) error
SetFileType is FileType Setter 文件类型 image/audio/video/font/other
func (*TaobaoMiniappCloudStoreRelationAddAPIRequest) SetSpecialId ¶ added in v1.2.0
func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetSpecialId(_specialId string) error
SetSpecialId is SpecialId Setter 上传平台返回的文件唯一ID
func (*TaobaoMiniappCloudStoreRelationAddAPIRequest) SetUrl ¶ added in v1.2.0
func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetUrl(_url string) error
SetUrl is Url Setter 上传平台返回的文件url,部分文件类型无固定url,非必填
type TaobaoMiniappCloudStoreRelationAddAPIResponse ¶
type TaobaoMiniappCloudStoreRelationAddAPIResponse struct { model.CommonResponse TaobaoMiniappCloudStoreRelationAddAPIResponseModel }
TaobaoMiniappCloudStoreRelationAddAPIResponse 云存储添加 API返回值 taobao.miniapp.cloud.store.relation.add
用于用户上传文件之后回写云存储的关联关系
type TaobaoMiniappCloudStoreRelationAddAPIResponseModel ¶ added in v1.2.0
type TaobaoMiniappCloudStoreRelationAddAPIResponseModel struct { XMLName xml.Name `xml:"miniapp_cloud_store_relation_add_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 文件真实url Url string `json:"url,omitempty" xml:"url,omitempty"` // 云存储文件唯一ID FileId string `json:"file_id,omitempty" xml:"file_id,omitempty"` }
TaobaoMiniappCloudStoreRelationAddAPIResponseModel is 云存储添加 成功返回结果
type TaobaoSmartappSmartformDataWriteAPIRequest ¶ added in v1.2.5
type TaobaoSmartappSmartformDataWriteAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoSmartappSmartformDataWriteAPIRequest 智能表单外部更新数据 API请求 taobao.smartapp.smartform.data.write
智能表单外部更新数据
func NewTaobaoSmartappSmartformDataWriteRequest ¶ added in v1.2.5
func NewTaobaoSmartappSmartformDataWriteRequest() *TaobaoSmartappSmartformDataWriteAPIRequest
NewTaobaoSmartappSmartformDataWriteRequest 初始化TaobaoSmartappSmartformDataWriteAPIRequest对象
func (TaobaoSmartappSmartformDataWriteAPIRequest) GetApiMethodName ¶ added in v1.2.5
func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoSmartappSmartformDataWriteAPIRequest) GetApiParams ¶ added in v1.2.5
func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoSmartappSmartformDataWriteAPIRequest) GetFormData ¶ added in v1.2.5
func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetFormData() string
GetFormData FormData Getter
func (TaobaoSmartappSmartformDataWriteAPIRequest) GetFormIdentifier ¶ added in v1.2.5
func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetFormIdentifier() string
GetFormIdentifier FormIdentifier Getter
func (TaobaoSmartappSmartformDataWriteAPIRequest) GetRecordId ¶ added in v1.2.5
func (r TaobaoSmartappSmartformDataWriteAPIRequest) GetRecordId() string
GetRecordId RecordId Getter
func (*TaobaoSmartappSmartformDataWriteAPIRequest) SetFormData ¶ added in v1.2.5
func (r *TaobaoSmartappSmartformDataWriteAPIRequest) SetFormData(_formData string) error
SetFormData is FormData Setter 需变更的表单数据
func (*TaobaoSmartappSmartformDataWriteAPIRequest) SetFormIdentifier ¶ added in v1.2.5
func (r *TaobaoSmartappSmartformDataWriteAPIRequest) SetFormIdentifier(_formIdentifier string) error
SetFormIdentifier is FormIdentifier Setter 智能表单唯一标识
func (*TaobaoSmartappSmartformDataWriteAPIRequest) SetRecordId ¶ added in v1.2.5
func (r *TaobaoSmartappSmartformDataWriteAPIRequest) SetRecordId(_recordId string) error
SetRecordId is RecordId Setter 需变更的数据ID,不填表示插入
type TaobaoSmartappSmartformDataWriteAPIResponse ¶ added in v1.2.5
type TaobaoSmartappSmartformDataWriteAPIResponse struct { model.CommonResponse TaobaoSmartappSmartformDataWriteAPIResponseModel }
TaobaoSmartappSmartformDataWriteAPIResponse 智能表单外部更新数据 API返回值 taobao.smartapp.smartform.data.write
智能表单外部更新数据
type TaobaoSmartappSmartformDataWriteAPIResponseModel ¶ added in v1.2.5
type TaobaoSmartappSmartformDataWriteAPIResponseModel struct { XMLName xml.Name `xml:"smartapp_smartform_data_write_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 操作数据ID RecordId string `json:"record_id,omitempty" xml:"record_id,omitempty"` }
TaobaoSmartappSmartformDataWriteAPIResponseModel is 智能表单外部更新数据 成功返回结果