Documentation ¶
Overview ¶
Package miniappcloud 包含商家应用相关结构体
Index ¶
- type File
- type TaobaominiappcloudmongoinsertAPIRequest
- func (r TaobaominiappcloudmongoinsertAPIRequest) GetApiMethodName() string
- func (r TaobaominiappcloudmongoinsertAPIRequest) GetApiParams(params url.Values)
- func (r TaobaominiappcloudmongoinsertAPIRequest) GetCollection() string
- func (r TaobaominiappcloudmongoinsertAPIRequest) GetEnv() string
- func (r TaobaominiappcloudmongoinsertAPIRequest) GetRawParams() model.Params
- func (r TaobaominiappcloudmongoinsertAPIRequest) GetRecord() string
- func (r *TaobaominiappcloudmongoinsertAPIRequest) SetCollection(_collection string) error
- func (r *TaobaominiappcloudmongoinsertAPIRequest) SetEnv(_env string) error
- func (r *TaobaominiappcloudmongoinsertAPIRequest) SetRecord(_record string) error
- type TaobaominiappcloudmongoinsertAPIResponse
- type TaobaominiappcloudmongoinsertAPIResponseModel
- type TaobaominiappcloudmongoupdateAPIRequest
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetApiMethodName() string
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetApiParams(params url.Values)
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetCollection() string
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetEnv() string
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetFilter() string
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetRawParams() model.Params
- func (r TaobaominiappcloudmongoupdateAPIRequest) GetRecord() string
- func (r *TaobaominiappcloudmongoupdateAPIRequest) SetCollection(_collection string) error
- func (r *TaobaominiappcloudmongoupdateAPIRequest) SetEnv(_env string) error
- func (r *TaobaominiappcloudmongoupdateAPIRequest) SetFilter(_filter string) error
- func (r *TaobaominiappcloudmongoupdateAPIRequest) SetRecord(_record string) error
- type TaobaominiappcloudmongoupdateAPIResponse
- type TaobaominiappcloudmongoupdateAPIResponseModel
- type TaobaominiappcloudstorelistfileAPIRequest
- func (r TaobaominiappcloudstorelistfileAPIRequest) GetApiMethodName() string
- func (r TaobaominiappcloudstorelistfileAPIRequest) GetApiParams(params url.Values)
- func (r TaobaominiappcloudstorelistfileAPIRequest) GetEnv() string
- func (r TaobaominiappcloudstorelistfileAPIRequest) GetFilePath() string
- func (r TaobaominiappcloudstorelistfileAPIRequest) GetRawParams() model.Params
- func (r *TaobaominiappcloudstorelistfileAPIRequest) SetEnv(_env string) error
- func (r *TaobaominiappcloudstorelistfileAPIRequest) SetFilePath(_filePath string) error
- type TaobaominiappcloudstorelistfileAPIResponse
- type TaobaominiappcloudstorelistfileAPIResponseModel
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.3.1
type TaobaominiappcloudmongoinsertAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaominiappcloudmongoinsertAPIRequest MongoDB插入单条数据 API请求 taobao.miniapp.cloud.mongo.insert
向商家应用云中插入一条记录,用于外部数据同步到应用中
func NewTaobaominiappcloudmongoinsertRequest ¶ added in v1.3.1
func NewTaobaominiappcloudmongoinsertRequest() *TaobaominiappcloudmongoinsertAPIRequest
NewTaobaominiappcloudmongoinsertRequest 初始化TaobaominiappcloudmongoinsertAPIRequest对象
func (TaobaominiappcloudmongoinsertAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaominiappcloudmongoinsertAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaominiappcloudmongoinsertAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaominiappcloudmongoinsertAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaominiappcloudmongoinsertAPIRequest) GetCollection ¶ added in v1.3.1
func (r TaobaominiappcloudmongoinsertAPIRequest) GetCollection() string
GetCollection Collection Getter
func (TaobaominiappcloudmongoinsertAPIRequest) GetEnv ¶ added in v1.3.1
func (r TaobaominiappcloudmongoinsertAPIRequest) GetEnv() string
GetEnv Env Getter
func (TaobaominiappcloudmongoinsertAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaominiappcloudmongoinsertAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaominiappcloudmongoinsertAPIRequest) GetRecord ¶ added in v1.3.1
func (r TaobaominiappcloudmongoinsertAPIRequest) GetRecord() string
GetRecord Record Getter
func (*TaobaominiappcloudmongoinsertAPIRequest) SetCollection ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoinsertAPIRequest) SetCollection(_collection string) error
SetCollection is Collection Setter MongoDB表名
func (*TaobaominiappcloudmongoinsertAPIRequest) SetEnv ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoinsertAPIRequest) SetEnv(_env string) error
SetEnv is Env Setter 要操作的环境,默认是测试环境
func (*TaobaominiappcloudmongoinsertAPIRequest) SetRecord ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoinsertAPIRequest) SetRecord(_record string) error
SetRecord is Record Setter 待插入的数据,JSON格式
type TaobaominiappcloudmongoinsertAPIResponse ¶ added in v1.3.1
type TaobaominiappcloudmongoinsertAPIResponse struct { model.CommonResponse TaobaominiappcloudmongoinsertAPIResponseModel }
TaobaominiappcloudmongoinsertAPIResponse MongoDB插入单条数据 API返回值 taobao.miniapp.cloud.mongo.insert
向商家应用云中插入一条记录,用于外部数据同步到应用中
type TaobaominiappcloudmongoinsertAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaominiappcloudmongoupdateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaominiappcloudmongoupdateAPIRequest 更新MongoDB中的数据 API请求 taobao.miniapp.cloud.mongo.update
更新MongoDB中的数据
func NewTaobaominiappcloudmongoupdateRequest ¶ added in v1.3.1
func NewTaobaominiappcloudmongoupdateRequest() *TaobaominiappcloudmongoupdateAPIRequest
NewTaobaominiappcloudmongoupdateRequest 初始化TaobaominiappcloudmongoupdateAPIRequest对象
func (TaobaominiappcloudmongoupdateAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaominiappcloudmongoupdateAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaominiappcloudmongoupdateAPIRequest) GetCollection ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetCollection() string
GetCollection Collection Getter
func (TaobaominiappcloudmongoupdateAPIRequest) GetEnv ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetEnv() string
GetEnv Env Getter
func (TaobaominiappcloudmongoupdateAPIRequest) GetFilter ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetFilter() string
GetFilter Filter Getter
func (TaobaominiappcloudmongoupdateAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaominiappcloudmongoupdateAPIRequest) GetRecord ¶ added in v1.3.1
func (r TaobaominiappcloudmongoupdateAPIRequest) GetRecord() string
GetRecord Record Getter
func (*TaobaominiappcloudmongoupdateAPIRequest) SetCollection ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoupdateAPIRequest) SetCollection(_collection string) error
SetCollection is Collection Setter MongoDB表名
func (*TaobaominiappcloudmongoupdateAPIRequest) SetEnv ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoupdateAPIRequest) SetEnv(_env string) error
SetEnv is Env Setter 要操作的环境,默认是测试环境
func (*TaobaominiappcloudmongoupdateAPIRequest) SetFilter ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoupdateAPIRequest) SetFilter(_filter string) error
SetFilter is Filter Setter 更新条件
func (*TaobaominiappcloudmongoupdateAPIRequest) SetRecord ¶ added in v1.3.1
func (r *TaobaominiappcloudmongoupdateAPIRequest) SetRecord(_record string) error
SetRecord is Record Setter 待写入的数据
type TaobaominiappcloudmongoupdateAPIResponse ¶ added in v1.3.1
type TaobaominiappcloudmongoupdateAPIResponse struct { model.CommonResponse TaobaominiappcloudmongoupdateAPIResponseModel }
TaobaominiappcloudmongoupdateAPIResponse 更新MongoDB中的数据 API返回值 taobao.miniapp.cloud.mongo.update
更新MongoDB中的数据
type TaobaominiappcloudmongoupdateAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaominiappcloudstorelistfileAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaominiappcloudstorelistfileAPIRequest 云存储根据文件名反查地址 API请求 taobao.miniapp.cloud.store.listfile
云存储中,根据文件名反查地址
func NewTaobaominiappcloudstorelistfileRequest ¶ added in v1.3.1
func NewTaobaominiappcloudstorelistfileRequest() *TaobaominiappcloudstorelistfileAPIRequest
NewTaobaominiappcloudstorelistfileRequest 初始化TaobaominiappcloudstorelistfileAPIRequest对象
func (TaobaominiappcloudstorelistfileAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaominiappcloudstorelistfileAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaominiappcloudstorelistfileAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaominiappcloudstorelistfileAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaominiappcloudstorelistfileAPIRequest) GetEnv ¶ added in v1.3.1
func (r TaobaominiappcloudstorelistfileAPIRequest) GetEnv() string
GetEnv Env Getter
func (TaobaominiappcloudstorelistfileAPIRequest) GetFilePath ¶ added in v1.3.1
func (r TaobaominiappcloudstorelistfileAPIRequest) GetFilePath() string
GetFilePath FilePath Getter
func (TaobaominiappcloudstorelistfileAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaominiappcloudstorelistfileAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaominiappcloudstorelistfileAPIRequest) SetEnv ¶ added in v1.3.1
func (r *TaobaominiappcloudstorelistfileAPIRequest) SetEnv(_env string) error
SetEnv is Env Setter 环境(online/test)
func (*TaobaominiappcloudstorelistfileAPIRequest) SetFilePath ¶ added in v1.3.1
func (r *TaobaominiappcloudstorelistfileAPIRequest) SetFilePath(_filePath string) error
SetFilePath is FilePath Setter 文件全路径名
type TaobaominiappcloudstorelistfileAPIResponse ¶ added in v1.3.1
type TaobaominiappcloudstorelistfileAPIResponse struct { model.CommonResponse TaobaominiappcloudstorelistfileAPIResponseModel }
TaobaominiappcloudstorelistfileAPIResponse 云存储根据文件名反查地址 API返回值 taobao.miniapp.cloud.store.listfile
云存储中,根据文件名反查地址
type TaobaominiappcloudstorelistfileAPIResponseModel ¶ added in v1.3.1
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 云存储根据文件名反查地址 成功返回结果