Documentation ¶
Overview ¶
商家应用 model
Index ¶
- type File
- type TaobaoMiniappCloudMongoInsertAPIRequest
- func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiMethodName() string
- func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiParams() url.Values
- func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetCollection() string
- func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetEnv() string
- 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() url.Values
- func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetCollection() string
- func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetEnv() string
- func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetFilter() string
- 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() url.Values
- func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetEnv() string
- func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetFilePath() string
- 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"` // 文件查询返回结果,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
func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoMiniappCloudMongoInsertAPIRequest) GetCollection ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetCollection() string
Collection Getter
func (TaobaoMiniappCloudMongoInsertAPIRequest) GetEnv ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetEnv() string
Env Getter
func (TaobaoMiniappCloudMongoInsertAPIRequest) GetRecord ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetRecord() string
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
func (r *TaobaoMiniappCloudMongoInsertAPIRequest) SetEnv(_env string) error
Env Setter 要操作的环境,默认是测试环境
func (*TaobaoMiniappCloudMongoInsertAPIRequest) SetRecord ¶ added in v1.2.0
func (r *TaobaoMiniappCloudMongoInsertAPIRequest) SetRecord(_record string) error
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
func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetCollection ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetCollection() string
Collection Getter
func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetEnv ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetEnv() string
Env Getter
func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetFilter ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetFilter() string
Filter Getter
func (TaobaoMiniappCloudMongoUpdateAPIRequest) GetRecord ¶ added in v1.2.0
func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetRecord() string
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
func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetEnv(_env string) error
Env Setter 要操作的环境,默认是测试环境
func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetFilter ¶ added in v1.2.0
func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetFilter(_filter string) error
Filter Setter 更新条件
func (*TaobaoMiniappCloudMongoUpdateAPIRequest) SetRecord ¶ added in v1.2.0
func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetRecord(_record string) error
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
func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoMiniappCloudStoreListfileAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoMiniappCloudStoreListfileAPIRequest) GetEnv ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetEnv() string
Env Getter
func (TaobaoMiniappCloudStoreListfileAPIRequest) GetFilePath ¶ added in v1.2.0
func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetFilePath() string
FilePath Getter
func (*TaobaoMiniappCloudStoreListfileAPIRequest) SetEnv ¶ added in v1.2.0
func (r *TaobaoMiniappCloudStoreListfileAPIRequest) SetEnv(_env string) error
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"` }
云存储根据文件名反查地址 成功返回结果