miniappcloud

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 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

This section is empty.

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 结构体

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 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) 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

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

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插入单条数据 成功返回结果

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 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) 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中的数据

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中的数据 成功返回结果

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 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) 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

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

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 云存储根据文件名反查地址 成功返回结果

Jump to

Keyboard shortcuts

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