miniappcloud

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package miniappcloud 包含商家应用相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseFile added in v1.3.4

func ReleaseFile(v *File)

ReleaseFile 释放File

func ReleaseTaobaoMiniappCloudMongoInsertAPIRequest added in v1.3.4

func ReleaseTaobaoMiniappCloudMongoInsertAPIRequest(v *TaobaoMiniappCloudMongoInsertAPIRequest)

ReleaseTaobaoMiniappCloudMongoInsertAPIRequest 将 TaobaoMiniappCloudMongoInsertAPIRequest 放入 sync.Pool

func ReleaseTaobaoMiniappCloudMongoInsertAPIResponse added in v1.3.4

func ReleaseTaobaoMiniappCloudMongoInsertAPIResponse(v *TaobaoMiniappCloudMongoInsertAPIResponse)

ReleaseTaobaoMiniappCloudMongoInsertAPIResponse 将 TaobaoMiniappCloudMongoInsertAPIResponse 保存到 sync.Pool

func ReleaseTaobaoMiniappCloudMongoUpdateAPIRequest added in v1.3.4

func ReleaseTaobaoMiniappCloudMongoUpdateAPIRequest(v *TaobaoMiniappCloudMongoUpdateAPIRequest)

ReleaseTaobaoMiniappCloudMongoUpdateAPIRequest 将 TaobaoMiniappCloudMongoUpdateAPIRequest 放入 sync.Pool

func ReleaseTaobaoMiniappCloudMongoUpdateAPIResponse added in v1.3.4

func ReleaseTaobaoMiniappCloudMongoUpdateAPIResponse(v *TaobaoMiniappCloudMongoUpdateAPIResponse)

ReleaseTaobaoMiniappCloudMongoUpdateAPIResponse 将 TaobaoMiniappCloudMongoUpdateAPIResponse 保存到 sync.Pool

func ReleaseTaobaoMiniappCloudStoreListfileAPIRequest added in v1.3.4

func ReleaseTaobaoMiniappCloudStoreListfileAPIRequest(v *TaobaoMiniappCloudStoreListfileAPIRequest)

ReleaseTaobaoMiniappCloudStoreListfileAPIRequest 将 TaobaoMiniappCloudStoreListfileAPIRequest 放入 sync.Pool

func ReleaseTaobaoMiniappCloudStoreListfileAPIResponse added in v1.3.4

func ReleaseTaobaoMiniappCloudStoreListfileAPIResponse(v *TaobaoMiniappCloudStoreListfileAPIResponse)

ReleaseTaobaoMiniappCloudStoreListfileAPIResponse 将 TaobaoMiniappCloudStoreListfileAPIResponse 保存到 sync.Pool

Types

type File

type File struct {
	// 文件地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 文件查询错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 文件id
	FileId string `json:"file_id,omitempty" xml:"file_id,omitempty"`
	// 文件查询返回结果,1-成功,0-失败
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

File 结构体

func GetFile added in v1.3.4

func GetFile() *File

GetFile() 从对象池中获取File

type TaobaoMiniappCloudMongoInsertAPIRequest added in v1.2.0

type TaobaoMiniappCloudMongoInsertAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoMiniappCloudMongoInsertAPIRequest MongoDB插入单条数据 API请求 taobao.miniapp.cloud.mongo.insert

向商家应用云中插入一条记录,用于外部数据同步到应用中

func GetTaobaoMiniappCloudMongoInsertAPIRequest added in v1.3.4

func GetTaobaoMiniappCloudMongoInsertAPIRequest() *TaobaoMiniappCloudMongoInsertAPIRequest

GetTaobaoMiniappCloudMongoInsertRequest 从 sync.Pool 获取 TaobaoMiniappCloudMongoInsertAPIRequest

func NewTaobaoMiniappCloudMongoInsertRequest

func NewTaobaoMiniappCloudMongoInsertRequest() *TaobaoMiniappCloudMongoInsertAPIRequest

NewTaobaoMiniappCloudMongoInsertRequest 初始化TaobaoMiniappCloudMongoInsertAPIRequest对象

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetCollection added in v1.2.0

GetCollection Collection Getter

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetEnv added in v1.2.0

GetEnv Env Getter

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetRecord added in v1.2.0

GetRecord Record Getter

func (*TaobaoMiniappCloudMongoInsertAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetCollection added in v1.2.0

func (r *TaobaoMiniappCloudMongoInsertAPIRequest) SetCollection(_collection string) error

SetCollection is Collection Setter MongoDB表名

func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetEnv added in v1.2.0

SetEnv is Env Setter 要操作的环境,默认是测试环境

func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetRecord added in v1.2.0

SetRecord is Record Setter 待插入的数据,JSON格式

type TaobaoMiniappCloudMongoInsertAPIResponse

type TaobaoMiniappCloudMongoInsertAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappCloudMongoInsertAPIResponseModel
}

TaobaoMiniappCloudMongoInsertAPIResponse MongoDB插入单条数据 API返回值 taobao.miniapp.cloud.mongo.insert

向商家应用云中插入一条记录,用于外部数据同步到应用中

func GetTaobaoMiniappCloudMongoInsertAPIResponse added in v1.3.4

func GetTaobaoMiniappCloudMongoInsertAPIResponse() *TaobaoMiniappCloudMongoInsertAPIResponse

GetTaobaoMiniappCloudMongoInsertAPIResponse 从 sync.Pool 获取 TaobaoMiniappCloudMongoInsertAPIResponse

func (*TaobaoMiniappCloudMongoInsertAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoMiniappCloudMongoInsertAPIResponseModel added in v1.2.0

type TaobaoMiniappCloudMongoInsertAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_cloud_mongo_insert_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的数据ID,在表中为_id字段
	Id string `json:"id,omitempty" xml:"id,omitempty"`
}

TaobaoMiniappCloudMongoInsertAPIResponseModel is MongoDB插入单条数据 成功返回结果

func (*TaobaoMiniappCloudMongoInsertAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoMiniappCloudMongoUpdateAPIRequest added in v1.2.0

type TaobaoMiniappCloudMongoUpdateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoMiniappCloudMongoUpdateAPIRequest 更新MongoDB中的数据 API请求 taobao.miniapp.cloud.mongo.update

更新MongoDB中的数据

func GetTaobaoMiniappCloudMongoUpdateAPIRequest added in v1.3.4

func GetTaobaoMiniappCloudMongoUpdateAPIRequest() *TaobaoMiniappCloudMongoUpdateAPIRequest

GetTaobaoMiniappCloudMongoUpdateRequest 从 sync.Pool 获取 TaobaoMiniappCloudMongoUpdateAPIRequest

func NewTaobaoMiniappCloudMongoUpdateRequest

func NewTaobaoMiniappCloudMongoUpdateRequest() *TaobaoMiniappCloudMongoUpdateAPIRequest

NewTaobaoMiniappCloudMongoUpdateRequest 初始化TaobaoMiniappCloudMongoUpdateAPIRequest对象

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetCollection added in v1.2.0

GetCollection Collection Getter

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetEnv added in v1.2.0

GetEnv Env Getter

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetFilter added in v1.2.0

GetFilter Filter Getter

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetRecord added in v1.2.0

GetRecord Record Getter

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetCollection added in v1.2.0

func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetCollection(_collection string) error

SetCollection is Collection Setter MongoDB表名

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetEnv added in v1.2.0

SetEnv is Env Setter 要操作的环境,默认是测试环境

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetFilter added in v1.2.0

SetFilter is Filter Setter 更新条件

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetRecord added in v1.2.0

SetRecord is Record Setter 待写入的数据

type TaobaoMiniappCloudMongoUpdateAPIResponse

type TaobaoMiniappCloudMongoUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappCloudMongoUpdateAPIResponseModel
}

TaobaoMiniappCloudMongoUpdateAPIResponse 更新MongoDB中的数据 API返回值 taobao.miniapp.cloud.mongo.update

更新MongoDB中的数据

func GetTaobaoMiniappCloudMongoUpdateAPIResponse added in v1.3.4

func GetTaobaoMiniappCloudMongoUpdateAPIResponse() *TaobaoMiniappCloudMongoUpdateAPIResponse

GetTaobaoMiniappCloudMongoUpdateAPIResponse 从 sync.Pool 获取 TaobaoMiniappCloudMongoUpdateAPIResponse

func (*TaobaoMiniappCloudMongoUpdateAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoMiniappCloudMongoUpdateAPIResponseModel added in v1.2.0

type TaobaoMiniappCloudMongoUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_cloud_mongo_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 更新的记录数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

TaobaoMiniappCloudMongoUpdateAPIResponseModel is 更新MongoDB中的数据 成功返回结果

func (*TaobaoMiniappCloudMongoUpdateAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoMiniappCloudStoreListfileAPIRequest added in v1.2.0

type TaobaoMiniappCloudStoreListfileAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoMiniappCloudStoreListfileAPIRequest 云存储根据文件名反查地址 API请求 taobao.miniapp.cloud.store.listfile

云存储中,根据文件名反查地址

func GetTaobaoMiniappCloudStoreListfileAPIRequest added in v1.3.4

func GetTaobaoMiniappCloudStoreListfileAPIRequest() *TaobaoMiniappCloudStoreListfileAPIRequest

GetTaobaoMiniappCloudStoreListfileRequest 从 sync.Pool 获取 TaobaoMiniappCloudStoreListfileAPIRequest

func NewTaobaoMiniappCloudStoreListfileRequest

func NewTaobaoMiniappCloudStoreListfileRequest() *TaobaoMiniappCloudStoreListfileAPIRequest

NewTaobaoMiniappCloudStoreListfileRequest 初始化TaobaoMiniappCloudStoreListfileAPIRequest对象

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetEnv added in v1.2.0

GetEnv Env Getter

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetFilePath added in v1.2.0

GetFilePath FilePath Getter

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoMiniappCloudStoreListfileAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoMiniappCloudStoreListfileAPIRequest) SetEnv added in v1.2.0

SetEnv is Env Setter 环境(online/test)

func (*TaobaoMiniappCloudStoreListfileAPIRequest) SetFilePath added in v1.2.0

func (r *TaobaoMiniappCloudStoreListfileAPIRequest) SetFilePath(_filePath string) error

SetFilePath is FilePath Setter 文件全路径名

type TaobaoMiniappCloudStoreListfileAPIResponse

type TaobaoMiniappCloudStoreListfileAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappCloudStoreListfileAPIResponseModel
}

TaobaoMiniappCloudStoreListfileAPIResponse 云存储根据文件名反查地址 API返回值 taobao.miniapp.cloud.store.listfile

云存储中,根据文件名反查地址

func GetTaobaoMiniappCloudStoreListfileAPIResponse added in v1.3.4

func GetTaobaoMiniappCloudStoreListfileAPIResponse() *TaobaoMiniappCloudStoreListfileAPIResponse

GetTaobaoMiniappCloudStoreListfileAPIResponse 从 sync.Pool 获取 TaobaoMiniappCloudStoreListfileAPIResponse

func (*TaobaoMiniappCloudStoreListfileAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoMiniappCloudStoreListfileAPIResponseModel added in v1.2.0

type TaobaoMiniappCloudStoreListfileAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_cloud_store_listfile_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Files []File `json:"files,omitempty" xml:"files>file,omitempty"`
}

TaobaoMiniappCloudStoreListfileAPIResponseModel is 云存储根据文件名反查地址 成功返回结果

func (*TaobaoMiniappCloudStoreListfileAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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