miniapp

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package miniapp 包含淘宝小程序API相关结构体

https://open.taobao.com/API.htm?docId=54266&docType=2

Index

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

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetData added in v1.2.0

GetData Data Getter

func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetEnv added in v1.2.0

GetEnv Env Getter

func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetExts added in v1.2.0

GetExts Exts Getter

func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetHandler added in v1.2.0

GetHandler Handler Getter

func (TaobaoMiniappCloudFunctionInvokeAPIRequest) GetName added in v1.2.0

GetName Name Getter

func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetData added in v1.2.0

SetData is Data Setter 调用云函数时的传参(JSON格式)

func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetEnv added in v1.2.0

SetEnv is Env Setter 云环境

func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetExts added in v1.2.0

SetExts is Exts Setter 扩展协议参数

func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetHandler added in v1.2.0

SetHandler is Handler Setter 指定云函数的handler

func (*TaobaoMiniappCloudFunctionInvokeAPIRequest) SetName added in v1.2.0

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

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetCloudPath added in v1.2.0

GetCloudPath CloudPath Getter

func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetEnv added in v1.2.0

GetEnv Env Getter

func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetFileType added in v1.2.0

GetFileType FileType Getter

func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetSpecialId added in v1.2.0

GetSpecialId SpecialId Getter

func (TaobaoMiniappCloudStoreRelationAddAPIRequest) GetUrl added in v1.2.0

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

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

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

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSmartappSmartformDataWriteAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSmartappSmartformDataWriteAPIRequest) GetFormData added in v1.2.5

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

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 智能表单外部更新数据 成功返回结果

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL