miniappopen

package
v1.2.1 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

miniapp开放API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributionOrderBindBaseDto

type DistributionOrderBindBaseDto struct {
	// 商品id
	TargetEntityId string `json:"target_entity_id,omitempty" xml:"target_entity_id,omitempty"`
	// 失败的原因
	FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"`
	// 绑定是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

DistributionOrderBindBaseDto 结构体

type DistributionOrderBindTargetEntityOpenRequestV2

type DistributionOrderBindTargetEntityOpenRequestV2 struct {
	// 绑定/解绑的投放计划id
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// true:绑定; false: 解绑
	AddBind bool `json:"add_bind,omitempty" xml:"add_bind,omitempty"`
}

DistributionOrderBindTargetEntityOpenRequestV2 结构体

type DistributionOrderBindTargetEntityOpenResultDto added in v1.2.0

type DistributionOrderBindTargetEntityOpenResultDto struct {
	// 绑定的目标url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 绑定投放的场景
	SceneName string `json:"scene_name,omitempty" xml:"scene_name,omitempty"`
	// 商品列表的绑定结果
	BindResultList []DistributionOrderBindBaseDto `json:"bind_result_list,omitempty" xml:"bind_result_list>distribution_order_bind_base_dto,omitempty"`
	// 绑定的投放计划id
	DistributeId int64 `json:"distribute_id,omitempty" xml:"distribute_id,omitempty"`
}

DistributionOrderBindTargetEntityOpenResultDto 结构体

type DistributionOrderOpenBizDto

type DistributionOrderOpenBizDto struct {
	// 唯一标识的id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 名字
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 开始时间,订购期有效的情况无该返回值
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 结束时间,订购期有效的投放计划无该返回值
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 状态,0:未开始, 1:进行中,2/3:已结束,其他为平台状态
	Status *model.File `json:"status,omitempty" xml:"status,omitempty"`
	// 投放的小程序url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 小程序id
	AppId int64 `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// 时效类型.0: 商家自定义时效,1:订购期内有效
	TimeType *model.File `json:"time_type,omitempty" xml:"time_type,omitempty"`
	// 关联的小部件id
	WidgetId int64 `json:"widget_id,omitempty" xml:"widget_id,omitempty"`
	// 关联的小部件版本号
	WidgetVersion string `json:"widget_version,omitempty" xml:"widget_version,omitempty"`
}

DistributionOrderOpenBizDto 结构体

type DistributionOrderQueryByIdOpenRequest

type DistributionOrderQueryByIdOpenRequest struct {
	// 投放计划的id列表
	OrderIdList []int64 `json:"order_id_list,omitempty" xml:"order_id_list>int64,omitempty"`
}

DistributionOrderQueryByIdOpenRequest 结构体

type DistributionOrderSaveOpenRequest

type DistributionOrderSaveOpenRequest struct {
	// 投放的小程序链接
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 时效类型 0:自定义时效; 1:订购期有效;为0时,开始时间和结束时间必传
	TimeType string `json:"time_type,omitempty" xml:"time_type,omitempty"`
	// 投放的小程序id
	AppId int64 `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// 要投放的卡片id
	CardId int64 `json:"card_id,omitempty" xml:"card_id,omitempty"`
	// 投放计划名字
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 要投放的场景id
	SceneId int64 `json:"scene_id,omitempty" xml:"scene_id,omitempty"`
	// 投放计划开始时间
	StartTime int64 `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 投放计划结束时间
	EndTime int64 `json:"end_time,omitempty" xml:"end_time,omitempty"`
}

DistributionOrderSaveOpenRequest 结构体

type MiniAppEntityDto

type MiniAppEntityDto struct {
	// appkey
	Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
	// 小程序appId
	Id string `json:"id,omitempty" xml:"id,omitempty"`
	// 小程序名称
	AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
	// 小程序描述
	AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"`
	// icon
	AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"`
	// 当前版本
	OnlineVersion string `json:"online_version,omitempty" xml:"online_version,omitempty"`
	// 线上码
	OnlineCode string `json:"online_code,omitempty" xml:"online_code,omitempty"`
}

MiniAppEntityDto 结构体

type MiniAppEntityTemplateDto

type MiniAppEntityTemplateDto struct {
	// 小程序描述
	AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"`
	// 小程序名称
	AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
	// appkey
	Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
	// 小程序app_id
	AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// 小程序icon
	AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"`
	// 线上正式版本的链接,所有消费者可访问。
	OnlineUrl string `json:"online_url,omitempty" xml:"online_url,omitempty"`
	// 应用id
	Id string `json:"id,omitempty" xml:"id,omitempty"`
	// 线上版本
	OnlineVersion string `json:"online_version,omitempty" xml:"online_version,omitempty"`
	// 线上码
	OnlineCode string `json:"online_code,omitempty" xml:"online_code,omitempty"`
}

MiniAppEntityTemplateDto 结构体

type MiniAppInstanceVersionDto

type MiniAppInstanceVersionDto struct {
	// 小程序版本号
	AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"`
	// 发布端
	Client string `json:"client,omitempty" xml:"client,omitempty"`
	// 小程序app_id
	AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// 版本状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 模板id
	TemplateId string `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 模板版本
	TemplateVersion string `json:"template_version,omitempty" xml:"template_version,omitempty"`
	// 扩展信息
	ExtJson string `json:"ext_json,omitempty" xml:"ext_json,omitempty"`
	// 版本链接。上线状态为线上地址,预览状态为预览地址,下线状态为空。
	AppUrl string `json:"app_url,omitempty" xml:"app_url,omitempty"`
}

MiniAppInstanceVersionDto 结构体

type MiniAppShortUrlDto

type MiniAppShortUrlDto struct {
	// 短链接地址【特别注意:短链接有效期为30天,超过时效短链接将无法正常跳转到原始链接地址,请勿将短链接投放或装修到长期存在的入口】
	ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"`
}

MiniAppShortUrlDto 结构体

type MiniappInstanceAppAllVersionsDto

type MiniappInstanceAppAllVersionsDto struct {
	// 小程序信息
	AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"`
	// 数据可能延迟,查不到隔会儿再查。
	AppVersionList []MiniAppInstanceVersionDto `json:"app_version_list,omitempty" xml:"app_version_list>mini_app_instance_version_dto,omitempty"`
}

MiniappInstanceAppAllVersionsDto 结构体

type MiniappInstanceAppOfflineDto

type MiniappInstanceAppOfflineDto struct {
	// 端信息
	Client string `json:"client,omitempty" xml:"client,omitempty"`
	// 错误信息
	FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

MiniappInstanceAppOfflineDto 结构体

type MiniappInstanceAppOnlineDto

type MiniappInstanceAppOnlineDto struct {
	// 端信息
	Client string `json:"client,omitempty" xml:"client,omitempty"`
	// 错误信息
	FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"`
	// 是否成功
	Success string `json:"success,omitempty" xml:"success,omitempty"`
}

MiniappInstanceAppOnlineDto 结构体

type TaobaoMiniappAppSellerConfigCompleteAPIRequest added in v1.2.0

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

商家完成小程序相关配置 API请求 taobao.miniapp.app.seller.config.complete

通过该接口告知平台商家已经完成小程序相关的必要设置,可进行后续操作。主要用于小部件、客服插件等场景。

func NewTaobaoMiniappAppSellerConfigCompleteRequest

func NewTaobaoMiniappAppSellerConfigCompleteRequest() *TaobaoMiniappAppSellerConfigCompleteAPIRequest

NewTaobaoMiniappAppSellerConfigCompleteRequest 初始化TaobaoMiniappAppSellerConfigCompleteAPIRequest对象

func (TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetAppId added in v1.2.0

Get AppId Getter

func (TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetVersion added in v1.2.0

Get Version Getter

func (*TaobaoMiniappAppSellerConfigCompleteAPIRequest) SetAppId added in v1.2.0

Set is AppId Setter 商家已完成配置的小部件/B端插件的appid

func (*TaobaoMiniappAppSellerConfigCompleteAPIRequest) SetVersion added in v1.2.0

Set is Version Setter 小部件必传,B端插件不用传。与app_id对应的已完成配置的版本号

type TaobaoMiniappAppSellerConfigCompleteAPIResponse

type TaobaoMiniappAppSellerConfigCompleteAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappAppSellerConfigCompleteAPIResponseModel
}
TaobaoMiniappAppSellerConfigCompleteAPIResponse

商家完成小程序相关配置 API返回值 taobao.miniapp.app.seller.config.complete

通过该接口告知平台商家已经完成小程序相关的必要设置,可进行后续操作。主要用于小部件、客服插件等场景。

type TaobaoMiniappAppSellerConfigCompleteAPIResponseModel added in v1.2.0

type TaobaoMiniappAppSellerConfigCompleteAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_app_seller_config_complete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作成功与否
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
}

TaobaoMiniappAppSellerConfigCompleteAPIResponseModel is 商家完成小程序相关配置 成功返回结果

type TaobaoMiniappDistributionItemsBindAPIRequest added in v1.2.0

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

小程序投放-商品绑定/解绑 API请求 taobao.miniapp.distribution.items.bind

提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。

func NewTaobaoMiniappDistributionItemsBindRequest

func NewTaobaoMiniappDistributionItemsBindRequest() *TaobaoMiniappDistributionItemsBindAPIRequest

NewTaobaoMiniappDistributionItemsBindRequest 初始化TaobaoMiniappDistributionItemsBindAPIRequest对象

func (TaobaoMiniappDistributionItemsBindAPIRequest) GetAddBind added in v1.2.0

Get AddBind Getter

func (TaobaoMiniappDistributionItemsBindAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappDistributionItemsBindAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappDistributionItemsBindAPIRequest) GetTargetEntityList added in v1.2.0

func (r TaobaoMiniappDistributionItemsBindAPIRequest) GetTargetEntityList() []string

Get TargetEntityList Getter

func (TaobaoMiniappDistributionItemsBindAPIRequest) GetUrl added in v1.2.0

Get Url Getter

func (*TaobaoMiniappDistributionItemsBindAPIRequest) SetAddBind added in v1.2.0

Set is AddBind Setter true表示新增绑定,false表示解绑

func (*TaobaoMiniappDistributionItemsBindAPIRequest) SetTargetEntityList added in v1.2.0

func (r *TaobaoMiniappDistributionItemsBindAPIRequest) SetTargetEntityList(_targetEntityList []string) error

Set is TargetEntityList Setter 商品id列表

func (*TaobaoMiniappDistributionItemsBindAPIRequest) SetUrl added in v1.2.0

Set is Url Setter 投放的商家应用完整链接

type TaobaoMiniappDistributionItemsBindAPIResponse

type TaobaoMiniappDistributionItemsBindAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappDistributionItemsBindAPIResponseModel
}
TaobaoMiniappDistributionItemsBindAPIResponse

小程序投放-商品绑定/解绑 API返回值 taobao.miniapp.distribution.items.bind

提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。

type TaobaoMiniappDistributionItemsBindAPIResponseModel added in v1.2.0

type TaobaoMiniappDistributionItemsBindAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_distribution_items_bind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 绑定的结果列表
	ModelList []DistributionOrderBindTargetEntityOpenResultDto `json:"model_list,omitempty" xml:"model_list>distribution_order_bind_target_entity_open_result_dto,omitempty"`
}

TaobaoMiniappDistributionItemsBindAPIResponseModel is 小程序投放-商品绑定/解绑 成功返回结果

type TaobaoMiniappDistributionOrderCreateAPIRequest added in v1.2.0

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

创建小程序投放计划 API请求 taobao.miniapp.distribution.order.create

帮助商家,创建小程序的投放计划。

func NewTaobaoMiniappDistributionOrderCreateRequest

func NewTaobaoMiniappDistributionOrderCreateRequest() *TaobaoMiniappDistributionOrderCreateAPIRequest

NewTaobaoMiniappDistributionOrderCreateRequest 初始化TaobaoMiniappDistributionOrderCreateAPIRequest对象

func (TaobaoMiniappDistributionOrderCreateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappDistributionOrderCreateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappDistributionOrderCreateAPIRequest) GetOrderRequest added in v1.2.0

Get OrderRequest Getter

func (*TaobaoMiniappDistributionOrderCreateAPIRequest) SetOrderRequest added in v1.2.0

Set is OrderRequest Setter 投放计划信息

type TaobaoMiniappDistributionOrderCreateAPIResponse

type TaobaoMiniappDistributionOrderCreateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappDistributionOrderCreateAPIResponseModel
}
TaobaoMiniappDistributionOrderCreateAPIResponse

创建小程序投放计划 API返回值 taobao.miniapp.distribution.order.create

帮助商家,创建小程序的投放计划。

type TaobaoMiniappDistributionOrderCreateAPIResponseModel added in v1.2.0

type TaobaoMiniappDistributionOrderCreateAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_distribution_order_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 调用是否成功
	OrderSuccess bool `json:"order_success,omitempty" xml:"order_success,omitempty"`
	// 错误码
	OrderErrorCode int64 `json:"order_error_code,omitempty" xml:"order_error_code,omitempty"`
	// 错误信息
	OrderErrorInfo string `json:"order_error_info,omitempty" xml:"order_error_info,omitempty"`
	// 创建成功的投放计划id
	Model int64 `json:"model,omitempty" xml:"model,omitempty"`
}

TaobaoMiniappDistributionOrderCreateAPIResponseModel is 创建小程序投放计划 成功返回结果

type TaobaoMiniappDistributionOrderGetAPIRequest added in v1.2.0

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

小程序投放-查询小程序投放计划信息 API请求 taobao.miniapp.distribution.order.get

服务商可通过该API,读取自己开发的小程序对应的投放计划的相关信息

func NewTaobaoMiniappDistributionOrderGetRequest

func NewTaobaoMiniappDistributionOrderGetRequest() *TaobaoMiniappDistributionOrderGetAPIRequest

NewTaobaoMiniappDistributionOrderGetRequest 初始化TaobaoMiniappDistributionOrderGetAPIRequest对象

func (TaobaoMiniappDistributionOrderGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappDistributionOrderGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappDistributionOrderGetAPIRequest) GetOrderIdRequest added in v1.2.0

Get OrderIdRequest Getter

func (*TaobaoMiniappDistributionOrderGetAPIRequest) SetOrderIdRequest added in v1.2.0

Set is OrderIdRequest Setter 查询入参

type TaobaoMiniappDistributionOrderGetAPIResponse

type TaobaoMiniappDistributionOrderGetAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappDistributionOrderGetAPIResponseModel
}
TaobaoMiniappDistributionOrderGetAPIResponse

小程序投放-查询小程序投放计划信息 API返回值 taobao.miniapp.distribution.order.get

服务商可通过该API,读取自己开发的小程序对应的投放计划的相关信息

type TaobaoMiniappDistributionOrderGetAPIResponseModel added in v1.2.0

type TaobaoMiniappDistributionOrderGetAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_distribution_order_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 投放计划列表的详细信息
	Model []DistributionOrderOpenBizDto `json:"model,omitempty" xml:"model>distribution_order_open_biz_dto,omitempty"`
}

TaobaoMiniappDistributionOrderGetAPIResponseModel is 小程序投放-查询小程序投放计划信息 成功返回结果

type TaobaoMiniappDistributionOrderItemsAllBindAPIRequest added in v1.2.0

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

小程序投放-基于投放计划绑定/解绑全店商品 API请求 taobao.miniapp.distribution.order.items.all.bind

提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。该接口对应的能力是全店投放,该能力的使用,需要联系平台运营进行人工申请,申请通过以后方可调用成功。

func NewTaobaoMiniappDistributionOrderItemsAllBindRequest

func NewTaobaoMiniappDistributionOrderItemsAllBindRequest() *TaobaoMiniappDistributionOrderItemsAllBindAPIRequest

NewTaobaoMiniappDistributionOrderItemsAllBindRequest 初始化TaobaoMiniappDistributionOrderItemsAllBindAPIRequest对象

func (TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) GetAllItemBindRequest added in v1.2.0

Get AllItemBindRequest Getter

func (TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) SetAllItemBindRequest added in v1.2.0

Set is AllItemBindRequest Setter 绑定/解绑的入参信息

type TaobaoMiniappDistributionOrderItemsAllBindAPIResponse

type TaobaoMiniappDistributionOrderItemsAllBindAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappDistributionOrderItemsAllBindAPIResponseModel
}
TaobaoMiniappDistributionOrderItemsAllBindAPIResponse

小程序投放-基于投放计划绑定/解绑全店商品 API返回值 taobao.miniapp.distribution.order.items.all.bind

提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。该接口对应的能力是全店投放,该能力的使用,需要联系平台运营进行人工申请,申请通过以后方可调用成功。

type TaobaoMiniappDistributionOrderItemsAllBindAPIResponseModel added in v1.2.0

type TaobaoMiniappDistributionOrderItemsAllBindAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_distribution_order_items_all_bind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否绑定/解绑成功
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
}

TaobaoMiniappDistributionOrderItemsAllBindAPIResponseModel is 小程序投放-基于投放计划绑定/解绑全店商品 成功返回结果

type TaobaoMiniappDistributionOrderItemsBindAPIRequest added in v1.2.0

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

小程序投放-基于投放计划绑定/解绑商品 API请求 taobao.miniapp.distribution.order.items.bind

提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。

func NewTaobaoMiniappDistributionOrderItemsBindRequest

func NewTaobaoMiniappDistributionOrderItemsBindRequest() *TaobaoMiniappDistributionOrderItemsBindAPIRequest

NewTaobaoMiniappDistributionOrderItemsBindRequest 初始化TaobaoMiniappDistributionOrderItemsBindAPIRequest对象

func (TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetAddBind added in v1.2.0

Get AddBind Getter

func (TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetDistributeId added in v1.2.0

Get DistributeId Getter

func (TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetTargetEntityList added in v1.2.0

Get TargetEntityList Getter

func (*TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetAddBind added in v1.2.0

Set is AddBind Setter true表示新增绑定,false表示解绑

func (*TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetDistributeId added in v1.2.0

func (r *TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetDistributeId(_distributeId int64) error

Set is DistributeId Setter 投放计划标识id

func (*TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetTargetEntityList added in v1.2.0

func (r *TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetTargetEntityList(_targetEntityList []string) error

Set is TargetEntityList Setter 商品id列表

type TaobaoMiniappDistributionOrderItemsBindAPIResponse

type TaobaoMiniappDistributionOrderItemsBindAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappDistributionOrderItemsBindAPIResponseModel
}
TaobaoMiniappDistributionOrderItemsBindAPIResponse

小程序投放-基于投放计划绑定/解绑商品 API返回值 taobao.miniapp.distribution.order.items.bind

提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。

type TaobaoMiniappDistributionOrderItemsBindAPIResponseModel added in v1.2.0

type TaobaoMiniappDistributionOrderItemsBindAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_distribution_order_items_bind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 绑定的结果
	Model *DistributionOrderBindTargetEntityOpenResultDto `json:"model,omitempty" xml:"model,omitempty"`
}

TaobaoMiniappDistributionOrderItemsBindAPIResponseModel is 小程序投放-基于投放计划绑定/解绑商品 成功返回结果

type TaobaoMiniappShorturlCreateAPIRequest added in v1.2.0

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

生成淘宝小程序短链接 API请求 taobao.miniapp.shorturl.create

提供淘宝小程序短链接生成的能力,只允许对淘宝小程序对应的域名:https://m.duanqu.com/ 生成对应的短链接,其他域名无效 【特别注意:短链接有效期为30天,超过时效短链接将无法正常跳转到原始链接地址,请勿将短链接投放或装修到长期存在的入口】

func NewTaobaoMiniappShorturlCreateRequest

func NewTaobaoMiniappShorturlCreateRequest() *TaobaoMiniappShorturlCreateAPIRequest

NewTaobaoMiniappShorturlCreateRequest 初始化TaobaoMiniappShorturlCreateAPIRequest对象

func (TaobaoMiniappShorturlCreateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappShorturlCreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappShorturlCreateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappShorturlCreateAPIRequest) GetMiniappUrl added in v1.2.0

Get MiniappUrl Getter

func (*TaobaoMiniappShorturlCreateAPIRequest) SetMiniappUrl added in v1.2.0

func (r *TaobaoMiniappShorturlCreateAPIRequest) SetMiniappUrl(_miniappUrl string) error

Set is MiniappUrl Setter 小程序链接地址。说明:链接地址,只允许https协议,域名只支持m.duanqu.com,链接必须包含_ariver_appid参数,链接不能够包含spm、short_name、app、tb_url_time_stamp这些系统保留参数

type TaobaoMiniappShorturlCreateAPIResponse

type TaobaoMiniappShorturlCreateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappShorturlCreateAPIResponseModel
}
TaobaoMiniappShorturlCreateAPIResponse

生成淘宝小程序短链接 API返回值 taobao.miniapp.shorturl.create

提供淘宝小程序短链接生成的能力,只允许对淘宝小程序对应的域名:https://m.duanqu.com/ 生成对应的短链接,其他域名无效 【特别注意:短链接有效期为30天,超过时效短链接将无法正常跳转到原始链接地址,请勿将短链接投放或装修到长期存在的入口】

type TaobaoMiniappShorturlCreateAPIResponseModel added in v1.2.0

type TaobaoMiniappShorturlCreateAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_shorturl_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoMiniappShorturlCreateResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoMiniappShorturlCreateAPIResponseModel is 生成淘宝小程序短链接 成功返回结果

type TaobaoMiniappShorturlCreateResult

type TaobaoMiniappShorturlCreateResult struct {
	// model
	Model *MiniAppShortUrlDto `json:"model,omitempty" xml:"model,omitempty"`
}

TaobaoMiniappShorturlCreateResult 结构体

type TaobaoMiniappTemplateInstantiateAPIRequest added in v1.2.0

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

构建实例化应用 API请求 taobao.miniapp.template.instantiate

实例化saas化的小程序

func NewTaobaoMiniappTemplateInstantiateRequest

func NewTaobaoMiniappTemplateInstantiateRequest() *TaobaoMiniappTemplateInstantiateAPIRequest

NewTaobaoMiniappTemplateInstantiateRequest 初始化TaobaoMiniappTemplateInstantiateAPIRequest对象

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetAlias added in v1.2.0

Get Alias Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetDescription added in v1.2.0

Get Description Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetExtJson added in v1.2.0

Get ExtJson Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetIcon added in v1.2.0

Get Icon Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetName added in v1.2.0

Get Name Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (TaobaoMiniappTemplateInstantiateAPIRequest) GetTemplateVersion added in v1.2.0

func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetTemplateVersion() string

Get TemplateVersion Getter

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetAlias added in v1.2.0

Set is Alias Setter 小程序简称【1-16】字符,可重名

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 投放端,目前可投放: taobao(淘宝),tmall(天猫),taobao为必填,需要模板在这些端上已经发布上线

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetDescription added in v1.2.0

func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetDescription(_description string) error

Set is Description Setter 描述长度(9~200)

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetExtJson added in v1.2.0

Set is ExtJson Setter 扩展信息,JSON格式。

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetIcon added in v1.2.0

Set is Icon Setter 小程序icon

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetName added in v1.2.0

Set is Name Setter 小程序名称按平台规则自动生成,该字段仅做兜底使用。

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

func (*TaobaoMiniappTemplateInstantiateAPIRequest) SetTemplateVersion added in v1.2.0

func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetTemplateVersion(_templateVersion string) error

Set is TemplateVersion Setter 模板版本

type TaobaoMiniappTemplateInstantiateAPIResponse

type TaobaoMiniappTemplateInstantiateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateInstantiateAPIResponseModel
}
TaobaoMiniappTemplateInstantiateAPIResponse

构建实例化应用 API返回值 taobao.miniapp.template.instantiate

实例化saas化的小程序

type TaobaoMiniappTemplateInstantiateAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateInstantiateAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_instantiate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// appkey
	Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
	// 小程序app_id
	AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// 小程序名称按平台规则自动生成。在授权弹窗标题、「关于」页面展示名称。
	AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
	// 小程序描述
	AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"`
	// 小程序icon
	AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"`
	// 当前新生成的预览版本的链接,仅当前商家有权限预览。
	PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"`
	// 当前新生成的预览版本号
	AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"`
	// 小程序简称。在小程序Loading动画、首页标题、「更多」菜单标题上优先展示简称。
	AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"`
}

TaobaoMiniappTemplateInstantiateAPIResponseModel is 构建实例化应用 成功返回结果

type TaobaoMiniappTemplateOfflineappAPIRequest added in v1.2.0

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

下线实例化应用 API请求 taobao.miniapp.template.offlineapp

对指定的实例化小程序进行下线,需要指定clients和app_version

func NewTaobaoMiniappTemplateOfflineappRequest

func NewTaobaoMiniappTemplateOfflineappRequest() *TaobaoMiniappTemplateOfflineappAPIRequest

NewTaobaoMiniappTemplateOfflineappRequest 初始化TaobaoMiniappTemplateOfflineappAPIRequest对象

func (TaobaoMiniappTemplateOfflineappAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateOfflineappAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateOfflineappAPIRequest) GetAppId added in v1.2.0

Get AppId Getter

func (TaobaoMiniappTemplateOfflineappAPIRequest) GetAppVersion added in v1.2.0

Get AppVersion Getter

func (TaobaoMiniappTemplateOfflineappAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniappTemplateOfflineappAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (*TaobaoMiniappTemplateOfflineappAPIRequest) SetAppId added in v1.2.0

Set is AppId Setter 要下线的小程序app_id

func (*TaobaoMiniappTemplateOfflineappAPIRequest) SetAppVersion added in v1.2.0

func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetAppVersion(_appVersion string) error

Set is AppVersion Setter 要下线的小程序版本号

func (*TaobaoMiniappTemplateOfflineappAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 要下线的投放端,目前可投放: taobao(淘宝),tmall(天猫)

func (*TaobaoMiniappTemplateOfflineappAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

type TaobaoMiniappTemplateOfflineappAPIResponse

type TaobaoMiniappTemplateOfflineappAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateOfflineappAPIResponseModel
}
TaobaoMiniappTemplateOfflineappAPIResponse

下线实例化应用 API返回值 taobao.miniapp.template.offlineapp

对指定的实例化小程序进行下线,需要指定clients和app_version

type TaobaoMiniappTemplateOfflineappAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateOfflineappAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_offlineapp_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 各端的下线结果
	OfflineResults []MiniappInstanceAppOfflineDto `json:"offline_results,omitempty" xml:"offline_results>miniapp_instance_app_offline_dto,omitempty"`
	// 下线的appId
	AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
}

TaobaoMiniappTemplateOfflineappAPIResponseModel is 下线实例化应用 成功返回结果

type TaobaoMiniappTemplateOnlineappAPIRequest added in v1.2.0

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

上线实例化应用 API请求 taobao.miniapp.template.onlineapp

将指定的预览版本发布上线,预览版本号由构建实例化或更新实例化接口返回。

func NewTaobaoMiniappTemplateOnlineappRequest

func NewTaobaoMiniappTemplateOnlineappRequest() *TaobaoMiniappTemplateOnlineappAPIRequest

NewTaobaoMiniappTemplateOnlineappRequest 初始化TaobaoMiniappTemplateOnlineappAPIRequest对象

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetAppId added in v1.2.0

Get AppId Getter

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetAppVersion added in v1.2.0

Get AppVersion Getter

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (TaobaoMiniappTemplateOnlineappAPIRequest) GetTemplateVersion added in v1.2.0

func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetTemplateVersion() string

Get TemplateVersion Getter

func (*TaobaoMiniappTemplateOnlineappAPIRequest) SetAppId added in v1.2.0

Set is AppId Setter 小程序app_id

func (*TaobaoMiniappTemplateOnlineappAPIRequest) SetAppVersion added in v1.2.0

func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetAppVersion(_appVersion string) error

Set is AppVersion Setter 待上线的预览版本号

func (*TaobaoMiniappTemplateOnlineappAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫)

func (*TaobaoMiniappTemplateOnlineappAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

func (*TaobaoMiniappTemplateOnlineappAPIRequest) SetTemplateVersion added in v1.2.0

func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetTemplateVersion(_templateVersion string) error

Set is TemplateVersion Setter 模板版本

type TaobaoMiniappTemplateOnlineappAPIResponse

type TaobaoMiniappTemplateOnlineappAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateOnlineappAPIResponseModel
}
TaobaoMiniappTemplateOnlineappAPIResponse

上线实例化应用 API返回值 taobao.miniapp.template.onlineapp

将指定的预览版本发布上线,预览版本号由构建实例化或更新实例化接口返回。

type TaobaoMiniappTemplateOnlineappAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateOnlineappAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_onlineapp_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 分端上线结果
	OnlineResults []MiniappInstanceAppOnlineDto `json:"online_results,omitempty" xml:"online_results>miniapp_instance_app_online_dto,omitempty"`
	// 基本信息
	AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"`
}

TaobaoMiniappTemplateOnlineappAPIResponseModel is 上线实例化应用 成功返回结果

type TaobaoMiniappTemplateQueryappAPIRequest added in v1.2.0

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

查询实例化应用版本 API请求 taobao.miniapp.template.queryapp

根据模板id和商家信息,查询实例化小程序版本查询

func NewTaobaoMiniappTemplateQueryappRequest

func NewTaobaoMiniappTemplateQueryappRequest() *TaobaoMiniappTemplateQueryappAPIRequest

NewTaobaoMiniappTemplateQueryappRequest 初始化TaobaoMiniappTemplateQueryappAPIRequest对象

func (TaobaoMiniappTemplateQueryappAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappTemplateQueryappAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateQueryappAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateQueryappAPIRequest) GetPageNum added in v1.2.0

Get PageNum Getter

func (TaobaoMiniappTemplateQueryappAPIRequest) GetPageSize added in v1.2.0

Get PageSize Getter

func (TaobaoMiniappTemplateQueryappAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (*TaobaoMiniappTemplateQueryappAPIRequest) SetPageNum added in v1.2.0

func (r *TaobaoMiniappTemplateQueryappAPIRequest) SetPageNum(_pageNum int64) error

Set is PageNum Setter 分页号,>=1

func (*TaobaoMiniappTemplateQueryappAPIRequest) SetPageSize added in v1.2.0

func (r *TaobaoMiniappTemplateQueryappAPIRequest) SetPageSize(_pageSize int64) error

Set is PageSize Setter 分页大小,最大50,按照小程序Id倒序

func (*TaobaoMiniappTemplateQueryappAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateQueryappAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

type TaobaoMiniappTemplateQueryappAPIResponse

type TaobaoMiniappTemplateQueryappAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateQueryappAPIResponseModel
}
TaobaoMiniappTemplateQueryappAPIResponse

查询实例化应用版本 API返回值 taobao.miniapp.template.queryapp

根据模板id和商家信息,查询实例化小程序版本查询

type TaobaoMiniappTemplateQueryappAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateQueryappAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_queryapp_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 所有版本信息
	AllVersionInfos []MiniappInstanceAppAllVersionsDto `json:"all_version_infos,omitempty" xml:"all_version_infos>miniapp_instance_app_all_versions_dto,omitempty"`
}

TaobaoMiniappTemplateQueryappAPIResponseModel is 查询实例化应用版本 成功返回结果

type TaobaoMiniappTemplateRollbackAPIRequest added in v1.2.0

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

回滚实例化应用 API请求 taobao.miniapp.template.rollback

将实例化小程序回滚到指定版本

func NewTaobaoMiniappTemplateRollbackRequest

func NewTaobaoMiniappTemplateRollbackRequest() *TaobaoMiniappTemplateRollbackAPIRequest

NewTaobaoMiniappTemplateRollbackRequest 初始化TaobaoMiniappTemplateRollbackAPIRequest对象

func (TaobaoMiniappTemplateRollbackAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappTemplateRollbackAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateRollbackAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateRollbackAPIRequest) GetAppId added in v1.2.0

Get AppId Getter

func (TaobaoMiniappTemplateRollbackAPIRequest) GetAppVersion added in v1.2.0

Get AppVersion Getter

func (TaobaoMiniappTemplateRollbackAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniappTemplateRollbackAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (TaobaoMiniappTemplateRollbackAPIRequest) GetTemplateVersion added in v1.2.0

func (r TaobaoMiniappTemplateRollbackAPIRequest) GetTemplateVersion() string

Get TemplateVersion Getter

func (*TaobaoMiniappTemplateRollbackAPIRequest) SetAppId added in v1.2.0

Set is AppId Setter 小程序app_id

func (*TaobaoMiniappTemplateRollbackAPIRequest) SetAppVersion added in v1.2.0

func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetAppVersion(_appVersion string) error

Set is AppVersion Setter 回到到该app_version

func (*TaobaoMiniappTemplateRollbackAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 要回滚的投放端,目前可投放: taobao,tmall

func (*TaobaoMiniappTemplateRollbackAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 实例化小程序对应的模板id

func (*TaobaoMiniappTemplateRollbackAPIRequest) SetTemplateVersion added in v1.2.0

func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetTemplateVersion(_templateVersion string) error

Set is TemplateVersion Setter 与app_version对应的模板版本

type TaobaoMiniappTemplateRollbackAPIResponse

type TaobaoMiniappTemplateRollbackAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateRollbackAPIResponseModel
}
TaobaoMiniappTemplateRollbackAPIResponse

回滚实例化应用 API返回值 taobao.miniapp.template.rollback

将实例化小程序回滚到指定版本

type TaobaoMiniappTemplateRollbackAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateRollbackAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_rollback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 分端回滚结果
	OnlineResults []MiniappInstanceAppOnlineDto `json:"online_results,omitempty" xml:"online_results>miniapp_instance_app_online_dto,omitempty"`
	// 基本信息
	AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"`
}

TaobaoMiniappTemplateRollbackAPIResponseModel is 回滚实例化应用 成功返回结果

type TaobaoMiniappTemplateUpdateAPIRequest added in v1.2.0

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

(已废弃)更新实例化应用 API请求 taobao.miniapp.template.update

商家应用c端模板实例化小程序更新

func NewTaobaoMiniappTemplateUpdateRequest

func NewTaobaoMiniappTemplateUpdateRequest() *TaobaoMiniappTemplateUpdateAPIRequest

NewTaobaoMiniappTemplateUpdateRequest 初始化TaobaoMiniappTemplateUpdateAPIRequest对象

func (TaobaoMiniappTemplateUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappTemplateUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateUpdateAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniappTemplateUpdateAPIRequest) GetExtJson added in v1.2.0

Get ExtJson Getter

func (TaobaoMiniappTemplateUpdateAPIRequest) GetId added in v1.2.0

Get Id Getter

func (TaobaoMiniappTemplateUpdateAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (TaobaoMiniappTemplateUpdateAPIRequest) GetTemplateVersion added in v1.2.0

func (r TaobaoMiniappTemplateUpdateAPIRequest) GetTemplateVersion() string

Get TemplateVersion Getter

func (*TaobaoMiniappTemplateUpdateAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫)

func (*TaobaoMiniappTemplateUpdateAPIRequest) SetExtJson added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetExtJson(_extJson string) error

Set is ExtJson Setter schema信息,不填且 应用线上版本使用的templateId与传入的templateId不一致,则会报错; 一致,则复用线上版本的schema。

func (*TaobaoMiniappTemplateUpdateAPIRequest) SetId added in v1.2.0

Set is Id Setter 应用id

func (*TaobaoMiniappTemplateUpdateAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

func (*TaobaoMiniappTemplateUpdateAPIRequest) SetTemplateVersion added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetTemplateVersion(_templateVersion string) error

Set is TemplateVersion Setter 模板版本

type TaobaoMiniappTemplateUpdateAPIResponse

type TaobaoMiniappTemplateUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateUpdateAPIResponseModel
}
TaobaoMiniappTemplateUpdateAPIResponse

(已废弃)更新实例化应用 API返回值 taobao.miniapp.template.update

商家应用c端模板实例化小程序更新

type TaobaoMiniappTemplateUpdateAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoMiniappTemplateUpdateResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoMiniappTemplateUpdateAPIResponseModel is (已废弃)更新实例化应用 成功返回结果

type TaobaoMiniappTemplateUpdateResult

type TaobaoMiniappTemplateUpdateResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMessage string `json:"err_message,omitempty" xml:"err_message,omitempty"`
	// model
	Model *MiniAppEntityTemplateDto `json:"model,omitempty" xml:"model,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoMiniappTemplateUpdateResult 结构体

type TaobaoMiniappTemplateUpdateappAPIRequest added in v1.2.0

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

更新实例化应用 API请求 taobao.miniapp.template.updateapp

商家应用c端模板实例化小程序更新,生成新的版本,但不会自动上线新版本

func NewTaobaoMiniappTemplateUpdateappRequest

func NewTaobaoMiniappTemplateUpdateappRequest() *TaobaoMiniappTemplateUpdateappAPIRequest

NewTaobaoMiniappTemplateUpdateappRequest 初始化TaobaoMiniappTemplateUpdateappAPIRequest对象

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetAlias added in v1.2.0

Get Alias Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetAppId added in v1.2.0

Get AppId Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetDesc added in v1.2.0

Get Desc Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetExtJson added in v1.2.0

Get ExtJson Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetIcon added in v1.2.0

Get Icon Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (TaobaoMiniappTemplateUpdateappAPIRequest) GetTemplateVersion added in v1.2.0

func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetTemplateVersion() string

Get TemplateVersion Getter

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetAlias added in v1.2.0

Set is Alias Setter 简称更新,1年5次

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetAppId added in v1.2.0

Set is AppId Setter 应用id,如果应用在对应端上已有的最新版本所使用的模板id,模板version和extjson,与本次入参一致,则认为不需要更新,返回已有的版本。

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫)

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetDesc added in v1.2.0

Set is Desc Setter 描述更新,1年5次

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetExtJson added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetExtJson(_extJson string) error

Set is ExtJson Setter 扩展信息。线上版本使用的template_id与传入的template_id一致时,可不填。

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetIcon added in v1.2.0

Set is Icon Setter Logo更新,1月5次

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

func (*TaobaoMiniappTemplateUpdateappAPIRequest) SetTemplateVersion added in v1.2.0

func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetTemplateVersion(_templateVersion string) error

Set is TemplateVersion Setter 模板版本

type TaobaoMiniappTemplateUpdateappAPIResponse

type TaobaoMiniappTemplateUpdateappAPIResponse struct {
	model.CommonResponse
	TaobaoMiniappTemplateUpdateappAPIResponseModel
}
TaobaoMiniappTemplateUpdateappAPIResponse

更新实例化应用 API返回值 taobao.miniapp.template.updateapp

商家应用c端模板实例化小程序更新,生成新的版本,但不会自动上线新版本

type TaobaoMiniappTemplateUpdateappAPIResponseModel added in v1.2.0

type TaobaoMiniappTemplateUpdateappAPIResponseModel struct {
	XMLName xml.Name `xml:"miniapp_template_updateapp_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 小程序描述
	AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"`
	// 小程序icon
	AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"`
	// 小程序名称
	AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
	// top appkey
	Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
	// 小程序app_id
	AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// 当前新生成的预览版本的链接,仅当前商家有权限预览。
	PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"`
	// 当前新生成的预览版本号
	AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"`
	// 小程序简称
	AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"`
}

TaobaoMiniappTemplateUpdateappAPIResponseModel is 更新实例化应用 成功返回结果

type TaobaoMiniapppTemplateInstantiateAPIRequest added in v1.2.0

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

(已废弃)构建实例化应用 API请求 taobao.miniappp.template.instantiate

实例化saas化的小程序

func NewTaobaoMiniapppTemplateInstantiateRequest

func NewTaobaoMiniapppTemplateInstantiateRequest() *TaobaoMiniapppTemplateInstantiateAPIRequest

NewTaobaoMiniapppTemplateInstantiateRequest 初始化TaobaoMiniapppTemplateInstantiateAPIRequest对象

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetClients added in v1.2.0

Get Clients Getter

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetDescription added in v1.2.0

Get Description Getter

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetExtJson added in v1.2.0

Get ExtJson Getter

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetIcon added in v1.2.0

Get Icon Getter

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetName added in v1.2.0

Get Name Getter

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (TaobaoMiniapppTemplateInstantiateAPIRequest) GetTemplateVersion added in v1.2.0

func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetTemplateVersion() string

Get TemplateVersion Getter

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetClients added in v1.2.0

func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetClients(_clients []string) error

Set is Clients Setter 投放端,目前可投放: taobao(淘宝),tmall(天猫)

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetDescription added in v1.2.0

func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetDescription(_description string) error

Set is Description Setter 描述长度(9~200)

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetExtJson added in v1.2.0

Set is ExtJson Setter schemadata, json字符串

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetIcon added in v1.2.0

Set is Icon Setter 小程序icon

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetName added in v1.2.0

Set is Name Setter 小程序名称

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetTemplateId added in v1.2.0

func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetTemplateId(_templateId string) error

Set is TemplateId Setter 模板id

func (*TaobaoMiniapppTemplateInstantiateAPIRequest) SetTemplateVersion added in v1.2.0

func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetTemplateVersion(_templateVersion string) error

Set is TemplateVersion Setter 模板版本

type TaobaoMiniapppTemplateInstantiateAPIResponse

type TaobaoMiniapppTemplateInstantiateAPIResponse struct {
	model.CommonResponse
	TaobaoMiniapppTemplateInstantiateAPIResponseModel
}
TaobaoMiniapppTemplateInstantiateAPIResponse

(已废弃)构建实例化应用 API返回值 taobao.miniappp.template.instantiate

实例化saas化的小程序

type TaobaoMiniapppTemplateInstantiateAPIResponseModel added in v1.2.0

type TaobaoMiniapppTemplateInstantiateAPIResponseModel struct {
	XMLName xml.Name `xml:"miniappp_template_instantiate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoMiniapppTemplateInstantiateResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoMiniapppTemplateInstantiateAPIResponseModel is (已废弃)构建实例化应用 成功返回结果

type TaobaoMiniapppTemplateInstantiateResult

type TaobaoMiniapppTemplateInstantiateResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMessage string `json:"err_message,omitempty" xml:"err_message,omitempty"`
	// model
	Model *MiniAppEntityDto `json:"model,omitempty" xml:"model,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoMiniapppTemplateInstantiateResult 结构体

Source Files

Jump to

Keyboard shortcuts

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