miniappcloud

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

商家应用 model

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

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"`
	// 文件查询返回结果,1-成功,0-失败
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 文件id
	FileId string `json:"file_id,omitempty" xml:"file_id,omitempty"`
}

File

type TaobaoMiniappCloudMongoInsertAPIRequest added in v1.2.0

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

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

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

func NewTaobaoMiniappCloudMongoInsertRequest

func NewTaobaoMiniappCloudMongoInsertRequest() *TaobaoMiniappCloudMongoInsertAPIRequest

初始化TaobaoMiniappCloudMongoInsertAPIRequest对象

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetCollection added in v1.2.0

Collection Getter

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetEnv added in v1.2.0

Env Getter

func (TaobaoMiniappCloudMongoInsertAPIRequest) GetRecord added in v1.2.0

Record Getter

func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetCollection added in v1.2.0

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

Collection Setter MongoDB表名

func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetEnv added in v1.2.0

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

func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetRecord added in v1.2.0

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

type TaobaoMiniappCloudMongoInsertAPIResponse

type TaobaoMiniappCloudMongoInsertAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappCloudMongoInsertAPIResponseModel
}

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"`
}

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

type TaobaoMiniappCloudMongoUpdateAPIRequest added in v1.2.0

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

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

更新MongoDB中的数据

func NewTaobaoMiniappCloudMongoUpdateRequest

func NewTaobaoMiniappCloudMongoUpdateRequest() *TaobaoMiniappCloudMongoUpdateAPIRequest

初始化TaobaoMiniappCloudMongoUpdateAPIRequest对象

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetCollection added in v1.2.0

Collection Getter

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetEnv added in v1.2.0

Env Getter

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetFilter added in v1.2.0

Filter Getter

func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetRecord added in v1.2.0

Record Getter

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetCollection added in v1.2.0

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

Collection Setter MongoDB表名

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetEnv added in v1.2.0

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

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetFilter added in v1.2.0

Filter Setter 更新条件

func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetRecord added in v1.2.0

Record Setter 待写入的数据

type TaobaoMiniappCloudMongoUpdateAPIResponse

type TaobaoMiniappCloudMongoUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappCloudMongoUpdateAPIResponseModel
}

更新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"`
}

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

type TaobaoMiniappCloudStoreListfileAPIRequest added in v1.2.0

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

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

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

func NewTaobaoMiniappCloudStoreListfileRequest

func NewTaobaoMiniappCloudStoreListfileRequest() *TaobaoMiniappCloudStoreListfileAPIRequest

初始化TaobaoMiniappCloudStoreListfileAPIRequest对象

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetEnv added in v1.2.0

Env Getter

func (TaobaoMiniappCloudStoreListfileAPIRequest) GetFilePath added in v1.2.0

FilePath Getter

func (*TaobaoMiniappCloudStoreListfileAPIRequest) SetEnv added in v1.2.0

Env Setter 环境(online/test)

func (*TaobaoMiniappCloudStoreListfileAPIRequest) SetFilePath added in v1.2.0

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

FilePath Setter 文件全路径名

type TaobaoMiniappCloudStoreListfileAPIResponse

type TaobaoMiniappCloudStoreListfileAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappCloudStoreListfileAPIResponseModel
}

云存储根据文件名反查地址 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"`
}

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

Jump to

Keyboard shortcuts

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