miniapp

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 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 云存储添加 成功返回结果

Jump to

Keyboard shortcuts

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