singletreasure

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package singletreasure 包含商家营销中心API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityInfo

type ActivityInfo struct {
	// 创建时间
	CreatedTime string `json:"created_time,omitempty" xml:"created_time,omitempty"`
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 不包邮地区
	ExcludeAreas string `json:"exclude_areas,omitempty" xml:"exclude_areas,omitempty"`
	// 活动开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 套餐描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 套餐名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动对应生效的人群 id
	CrowdId string `json:"crowd_id,omitempty" xml:"crowd_id,omitempty"`
	// 套餐 id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 折扣类型,1 为促销价,2 为打折,4 为减钱
	DiscountType int64 `json:"discount_type,omitempty" xml:"discount_type,omitempty"`
	// 卖家 id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 优惠类型,3 为 SKU 级优惠类型,1 为商品级优惠类型
	PromotionLevel int64 `json:"promotion_level,omitempty" xml:"promotion_level,omitempty"`
	// 活动状态
	ActivityStatus int64 `json:"activity_status,omitempty" xml:"activity_status,omitempty"`
	// 是否包邮
	FreePost bool `json:"free_post,omitempty" xml:"free_post,omitempty"`
}

ActivityInfo 结构体

type ActivityInfoCreateDto

type ActivityInfoCreateDto struct {
	// 开始时间:需要早于当天零点
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 人群 id
	CrowdId string `json:"crowd_id,omitempty" xml:"crowd_id,omitempty"`
	// 结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 不包邮地区
	ExcludeAreas string `json:"exclude_areas,omitempty" xml:"exclude_areas,omitempty"`
	// 优惠类型    促销价:1;打折:2;减钱:4
	DiscountType int64 `json:"discount_type,omitempty" xml:"discount_type,omitempty"`
	// 优惠等级 商品:1; 店铺:2; SKU:3
	PromotionLevel int64 `json:"promotion_level,omitempty" xml:"promotion_level,omitempty"`
	// 活动类型, 普通活动: 1, 官方活动: 2
	ActivityType int64 `json:"activity_type,omitempty" xml:"activity_type,omitempty"`
	// 活动的Id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 是否包邮
	FreePost bool `json:"free_post,omitempty" xml:"free_post,omitempty"`
}

ActivityInfoCreateDto 结构体

type ActivityInfoListQueryDto

type ActivityInfoListQueryDto struct {
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动 id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动状态  删除:-1;暂停:0;未开始:1;进行中:2;已结束:3
	ActivityStatus int64 `json:"activity_status,omitempty" xml:"activity_status,omitempty"`
}

ActivityInfoListQueryDto 结构体

type ActivityNameCategoryDto

type ActivityNameCategoryDto struct {
	// 名称列表
	List []ActivityNameInfoDto `json:"list,omitempty" xml:"list>activity_name_info_dto,omitempty"`
	// 活动描述   1:日常活动  2:官方活动
	Text string `json:"text,omitempty" xml:"text,omitempty"`
	// 活动value
	Value int64 `json:"value,omitempty" xml:"value,omitempty"`
}

ActivityNameCategoryDto 结构体

type ActivityNameInfoDto

type ActivityNameInfoDto struct {
	// 活动名称的列表
	NameList []string `json:"name_list,omitempty" xml:"name_list>string,omitempty"`
	// 类目
	Category string `json:"category,omitempty" xml:"category,omitempty"`
}

ActivityNameInfoDto 结构体

type ItemDetailInfo

type ItemDetailInfo struct {
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 不包邮地区
	ExcludeAreas string `json:"exclude_areas,omitempty" xml:"exclude_areas,omitempty"`
	// 活动开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 对应的人群 id
	CrowdId string `json:"crowd_id,omitempty" xml:"crowd_id,omitempty"`
	// 限购数
	LimitCheck int64 `json:"limit_check,omitempty" xml:"limit_check,omitempty"`
	// 活动 id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 折扣类型,1 为促销价,2 为打折,4 为减钱
	DiscountType int64 `json:"discount_type,omitempty" xml:"discount_type,omitempty"`
	// 猫客对应折扣
	MkDiscount int64 `json:"mk_discount,omitempty" xml:"mk_discount,omitempty"`
	// 优惠类型,1 为商品级优惠,3 为 SKU 级优惠
	PromotionLevel int64 `json:"promotion_level,omitempty" xml:"promotion_level,omitempty"`
	// 状态,-1 删除,0 暂停,1 征程
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 宝贝 id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 折扣类型,1 为促销价,2 为打折,4 为减钱
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
	// 价格
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// id
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 是否包邮
	FreePost bool `json:"free_post,omitempty" xml:"free_post,omitempty"`
	// 抹分与否
	IsDiscardFen bool `json:"is_discard_fen,omitempty" xml:"is_discard_fen,omitempty"`
	// 是否取整
	IsMathFloor bool `json:"is_math_floor,omitempty" xml:"is_math_floor,omitempty"`
}

ItemDetailInfo 结构体

type ItemDetailInfoBatchCreateDto

type ItemDetailInfoBatchCreateDto struct {
	// 商品列表
	ItemDetailInfo []ItemDetailInfoCreateDto `json:"item_detail_info,omitempty" xml:"item_detail_info>item_detail_info_create_dto,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
}

ItemDetailInfoBatchCreateDto 结构体

type ItemDetailInfoCreateDto

type ItemDetailInfoCreateDto struct {
	// sku对象列表
	SkuVOs []SkuDetailInfoCreateDto `json:"sku_v_os,omitempty" xml:"sku_v_os>sku_detail_info_create_dto,omitempty"`
	// 商品买家限购数量,-1表示不限购
	LimitCheck int64 `json:"limit_check,omitempty" xml:"limit_check,omitempty"`
	// 猫客折上折,优惠力度,打折、减钱:单位分;打折,8折:800
	MkDiscount int64 `json:"mk_discount,omitempty" xml:"mk_discount,omitempty"`
	// 商品Id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 优惠力度,打折、减钱:单位分;打折,8折:800
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 是否取整
	IsMathFloor bool `json:"is_math_floor,omitempty" xml:"is_math_floor,omitempty"`
	// 是否抹分
	IsDiscardFen bool `json:"is_discard_fen,omitempty" xml:"is_discard_fen,omitempty"`
}

ItemDetailInfoCreateDto 结构体

type ItemProcessErrorResultDto

type ItemProcessErrorResultDto struct {
	// 处理失败的item和sku: map结构为:itemId: skuId-错误信息,所有返回的外层key是itemId,里面的key是skuId,商品级别的skuId为-1
	SkuIdMap string `json:"sku_id_map,omitempty" xml:"sku_id_map,omitempty"`
	// activityId
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
}

ItemProcessErrorResultDto 结构体

type PageQueryDto

type PageQueryDto struct {
	// 页码,最大为50
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 页数,从1开始
	PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"`
	// 查询条件请求体
	Query *ActivityInfoListQueryDto `json:"query,omitempty" xml:"query,omitempty"`
}

PageQueryDto 结构体

type PageResultDto

type PageResultDto struct {
	// 查询结果
	DataList []ItemDetailInfo `json:"data_list,omitempty" xml:"data_list>item_detail_info,omitempty"`
	// 系统信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 页码
	PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"`
	// 系统编码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 返回数量个数
	Size int64 `json:"size,omitempty" xml:"size,omitempty"`
	// 系统执行成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

PageResultDto 结构体

type SkuDetailInfoCreateDto

type SkuDetailInfoCreateDto struct {
	// 猫客折上折,优惠力度,打折、减钱:单位分;打折,8折:800
	MkDiscount int64 `json:"mk_discount,omitempty" xml:"mk_discount,omitempty"`
	// sku的Id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 优惠力度,打折、减钱:单位分;打折,8折:800
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
}

SkuDetailInfoCreateDto 结构体

type TaobaoSingletreasureActivityCreateAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityCreateAPIRequest 活动创建接口 API请求 taobao.singletreasure.activity.create

创建优惠活动

func NewTaobaoSingletreasureActivityCreateRequest

func NewTaobaoSingletreasureActivityCreateRequest() *TaobaoSingletreasureActivityCreateAPIRequest

NewTaobaoSingletreasureActivityCreateRequest 初始化TaobaoSingletreasureActivityCreateAPIRequest对象

func (TaobaoSingletreasureActivityCreateAPIRequest) GetActivityInfo added in v1.2.0

GetActivityInfo ActivityInfo Getter

func (TaobaoSingletreasureActivityCreateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityCreateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoSingletreasureActivityCreateAPIRequest) SetActivityInfo added in v1.2.0

SetActivityInfo is ActivityInfo Setter 系统入参

type TaobaoSingletreasureActivityCreateAPIResponse

type TaobaoSingletreasureActivityCreateAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityCreateAPIResponseModel
}

TaobaoSingletreasureActivityCreateAPIResponse 活动创建接口 API返回值 taobao.singletreasure.activity.create

创建优惠活动

type TaobaoSingletreasureActivityCreateAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityCreateAPIResponseModel is 活动创建接口 成功返回结果

type TaobaoSingletreasureActivityCreateResultDto

type TaobaoSingletreasureActivityCreateResultDto struct {
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 新建套餐 id
	Data int64 `json:"data,omitempty" xml:"data,omitempty"`
	// 错误编码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 系统执行成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityCreateResultDto 结构体

type TaobaoSingletreasureActivityDeleteAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityDeleteAPIRequest 删除活动接口 API请求 taobao.singletreasure.activity.delete

删除优惠活动

func NewTaobaoSingletreasureActivityDeleteRequest

func NewTaobaoSingletreasureActivityDeleteRequest() *TaobaoSingletreasureActivityDeleteAPIRequest

NewTaobaoSingletreasureActivityDeleteRequest 初始化TaobaoSingletreasureActivityDeleteAPIRequest对象

func (TaobaoSingletreasureActivityDeleteAPIRequest) GetActivityId added in v1.2.0

GetActivityId ActivityId Getter

func (TaobaoSingletreasureActivityDeleteAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityDeleteAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoSingletreasureActivityDeleteAPIRequest) SetActivityId added in v1.2.0

func (r *TaobaoSingletreasureActivityDeleteAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动Id

type TaobaoSingletreasureActivityDeleteAPIResponse

type TaobaoSingletreasureActivityDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityDeleteAPIResponseModel
}

TaobaoSingletreasureActivityDeleteAPIResponse 删除活动接口 API返回值 taobao.singletreasure.activity.delete

删除优惠活动

type TaobaoSingletreasureActivityDeleteAPIResponseModel added in v1.2.0

type TaobaoSingletreasureActivityDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"singletreasure_activity_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 删除是否成功 boolean值
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// 系统执行是否成功
	ResultStatus bool `json:"result_status,omitempty" xml:"result_status,omitempty"`
}

TaobaoSingletreasureActivityDeleteAPIResponseModel is 删除活动接口 成功返回结果

type TaobaoSingletreasureActivityItemBatchaddAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityItemBatchaddAPIRequest 批量添加商品接口 API请求 taobao.singletreasure.activity.item.batchadd

向活动中批量添加商品优惠

func NewTaobaoSingletreasureActivityItemBatchaddRequest

func NewTaobaoSingletreasureActivityItemBatchaddRequest() *TaobaoSingletreasureActivityItemBatchaddAPIRequest

NewTaobaoSingletreasureActivityItemBatchaddRequest 初始化TaobaoSingletreasureActivityItemBatchaddAPIRequest对象

func (TaobaoSingletreasureActivityItemBatchaddAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityItemBatchaddAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSingletreasureActivityItemBatchaddAPIRequest) GetItemDetailInfo added in v1.2.0

GetItemDetailInfo ItemDetailInfo Getter

func (*TaobaoSingletreasureActivityItemBatchaddAPIRequest) SetItemDetailInfo added in v1.2.0

SetItemDetailInfo is ItemDetailInfo Setter 系统入参

type TaobaoSingletreasureActivityItemBatchaddAPIResponse

type TaobaoSingletreasureActivityItemBatchaddAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityItemBatchaddAPIResponseModel
}

TaobaoSingletreasureActivityItemBatchaddAPIResponse 批量添加商品接口 API返回值 taobao.singletreasure.activity.item.batchadd

向活动中批量添加商品优惠

type TaobaoSingletreasureActivityItemBatchaddAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityItemBatchaddAPIResponseModel is 批量添加商品接口 成功返回结果

type TaobaoSingletreasureActivityItemBatchaddResultDto

type TaobaoSingletreasureActivityItemBatchaddResultDto struct {
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// data
	Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityItemBatchaddResultDto 结构体

type TaobaoSingletreasureActivityItemBatchupdateAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityItemBatchupdateAPIRequest 批量修改商品接口 API请求 taobao.singletreasure.activity.item.batchupdate

批量修改商品优惠接口

func NewTaobaoSingletreasureActivityItemBatchupdateRequest

func NewTaobaoSingletreasureActivityItemBatchupdateRequest() *TaobaoSingletreasureActivityItemBatchupdateAPIRequest

NewTaobaoSingletreasureActivityItemBatchupdateRequest 初始化TaobaoSingletreasureActivityItemBatchupdateAPIRequest对象

func (TaobaoSingletreasureActivityItemBatchupdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityItemBatchupdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSingletreasureActivityItemBatchupdateAPIRequest) GetItemDetailInfo added in v1.2.0

GetItemDetailInfo ItemDetailInfo Getter

func (*TaobaoSingletreasureActivityItemBatchupdateAPIRequest) SetItemDetailInfo added in v1.2.0

SetItemDetailInfo is ItemDetailInfo Setter 系统入参

type TaobaoSingletreasureActivityItemBatchupdateAPIResponse

type TaobaoSingletreasureActivityItemBatchupdateAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityItemBatchupdateAPIResponseModel
}

TaobaoSingletreasureActivityItemBatchupdateAPIResponse 批量修改商品接口 API返回值 taobao.singletreasure.activity.item.batchupdate

批量修改商品优惠接口

type TaobaoSingletreasureActivityItemBatchupdateAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityItemBatchupdateAPIResponseModel is 批量修改商品接口 成功返回结果

type TaobaoSingletreasureActivityItemBatchupdateResultDto

type TaobaoSingletreasureActivityItemBatchupdateResultDto struct {
	// 返回的描述信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回所有的处理错误的信息
	Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 处理结果
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityItemBatchupdateResultDto 结构体

type TaobaoSingletreasureActivityItemDeleteAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityItemDeleteAPIRequest 删除单品优惠接口 API请求 taobao.singletreasure.activity.item.delete

删除单品优惠接口

func NewTaobaoSingletreasureActivityItemDeleteRequest

func NewTaobaoSingletreasureActivityItemDeleteRequest() *TaobaoSingletreasureActivityItemDeleteAPIRequest

NewTaobaoSingletreasureActivityItemDeleteRequest 初始化TaobaoSingletreasureActivityItemDeleteAPIRequest对象

func (TaobaoSingletreasureActivityItemDeleteAPIRequest) GetActivityId added in v1.2.0

GetActivityId ActivityId Getter

func (TaobaoSingletreasureActivityItemDeleteAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityItemDeleteAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSingletreasureActivityItemDeleteAPIRequest) GetItemId added in v1.2.0

GetItemId ItemId Getter

func (*TaobaoSingletreasureActivityItemDeleteAPIRequest) SetActivityId added in v1.2.0

func (r *TaobaoSingletreasureActivityItemDeleteAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id

func (*TaobaoSingletreasureActivityItemDeleteAPIRequest) SetItemId added in v1.2.0

SetItemId is ItemId Setter 商品Id

type TaobaoSingletreasureActivityItemDeleteAPIResponse

type TaobaoSingletreasureActivityItemDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityItemDeleteAPIResponseModel
}

TaobaoSingletreasureActivityItemDeleteAPIResponse 删除单品优惠接口 API返回值 taobao.singletreasure.activity.item.delete

删除单品优惠接口

type TaobaoSingletreasureActivityItemDeleteAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityItemDeleteAPIResponseModel is 删除单品优惠接口 成功返回结果

type TaobaoSingletreasureActivityItemDeleteResultDto

type TaobaoSingletreasureActivityItemDeleteResultDto struct {
	// 请求返回信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回所有的处理错误的信息
	Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 请求返回码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityItemDeleteResultDto 结构体

type TaobaoSingletreasureActivityItemQueryAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityItemQueryAPIRequest 查询活动下的优惠信息 API请求 taobao.singletreasure.activity.item.query

分页查询活动下的商品优惠信息

func NewTaobaoSingletreasureActivityItemQueryRequest

func NewTaobaoSingletreasureActivityItemQueryRequest() *TaobaoSingletreasureActivityItemQueryAPIRequest

NewTaobaoSingletreasureActivityItemQueryRequest 初始化TaobaoSingletreasureActivityItemQueryAPIRequest对象

func (TaobaoSingletreasureActivityItemQueryAPIRequest) GetActivityId added in v1.2.0

GetActivityId ActivityId Getter

func (TaobaoSingletreasureActivityItemQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityItemQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSingletreasureActivityItemQueryAPIRequest) GetPageNumber added in v1.2.0

GetPageNumber PageNumber Getter

func (TaobaoSingletreasureActivityItemQueryAPIRequest) GetPageSize added in v1.2.0

GetPageSize PageSize Getter

func (*TaobaoSingletreasureActivityItemQueryAPIRequest) SetActivityId added in v1.2.0

func (r *TaobaoSingletreasureActivityItemQueryAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动Id

func (*TaobaoSingletreasureActivityItemQueryAPIRequest) SetPageNumber added in v1.2.0

func (r *TaobaoSingletreasureActivityItemQueryAPIRequest) SetPageNumber(_pageNumber int64) error

SetPageNumber is PageNumber Setter 页码

func (*TaobaoSingletreasureActivityItemQueryAPIRequest) SetPageSize added in v1.2.0

SetPageSize is PageSize Setter 页大小

type TaobaoSingletreasureActivityItemQueryAPIResponse

type TaobaoSingletreasureActivityItemQueryAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityItemQueryAPIResponseModel
}

TaobaoSingletreasureActivityItemQueryAPIResponse 查询活动下的优惠信息 API返回值 taobao.singletreasure.activity.item.query

分页查询活动下的商品优惠信息

type TaobaoSingletreasureActivityItemQueryAPIResponseModel added in v1.2.0

type TaobaoSingletreasureActivityItemQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"singletreasure_activity_item_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *PageResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoSingletreasureActivityItemQueryAPIResponseModel is 查询活动下的优惠信息 成功返回结果

type TaobaoSingletreasureActivityItemUpdateAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityItemUpdateAPIRequest 更新单品优惠接口 API请求 taobao.singletreasure.activity.item.update

更新单品优惠接口

func NewTaobaoSingletreasureActivityItemUpdateRequest

func NewTaobaoSingletreasureActivityItemUpdateRequest() *TaobaoSingletreasureActivityItemUpdateAPIRequest

NewTaobaoSingletreasureActivityItemUpdateRequest 初始化TaobaoSingletreasureActivityItemUpdateAPIRequest对象

func (TaobaoSingletreasureActivityItemUpdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityItemUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSingletreasureActivityItemUpdateAPIRequest) GetItemDetailInfo added in v1.2.0

GetItemDetailInfo ItemDetailInfo Getter

func (*TaobaoSingletreasureActivityItemUpdateAPIRequest) SetItemDetailInfo added in v1.2.0

SetItemDetailInfo is ItemDetailInfo Setter 修改接口的入参对象

type TaobaoSingletreasureActivityItemUpdateAPIResponse

type TaobaoSingletreasureActivityItemUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityItemUpdateAPIResponseModel
}

TaobaoSingletreasureActivityItemUpdateAPIResponse 更新单品优惠接口 API返回值 taobao.singletreasure.activity.item.update

更新单品优惠接口

type TaobaoSingletreasureActivityItemUpdateAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityItemUpdateAPIResponseModel is 更新单品优惠接口 成功返回结果

type TaobaoSingletreasureActivityItemUpdateResultDto

type TaobaoSingletreasureActivityItemUpdateResultDto struct {
	// 请求返回信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回所有的处理错误的信息
	Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 请求返回码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityItemUpdateResultDto 结构体

type TaobaoSingletreasureActivityNameQueryAPIRequest added in v1.2.0

type TaobaoSingletreasureActivityNameQueryAPIRequest struct {
	model.Params
}

TaobaoSingletreasureActivityNameQueryAPIRequest 查询官方的活动名称接口 API请求 taobao.singletreasure.activity.name.query

查询官方的活动名称列表接口

func NewTaobaoSingletreasureActivityNameQueryRequest

func NewTaobaoSingletreasureActivityNameQueryRequest() *TaobaoSingletreasureActivityNameQueryAPIRequest

NewTaobaoSingletreasureActivityNameQueryRequest 初始化TaobaoSingletreasureActivityNameQueryAPIRequest对象

func (TaobaoSingletreasureActivityNameQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityNameQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type TaobaoSingletreasureActivityNameQueryAPIResponse

type TaobaoSingletreasureActivityNameQueryAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityNameQueryAPIResponseModel
}

TaobaoSingletreasureActivityNameQueryAPIResponse 查询官方的活动名称接口 API返回值 taobao.singletreasure.activity.name.query

查询官方的活动名称列表接口

type TaobaoSingletreasureActivityNameQueryAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityNameQueryAPIResponseModel is 查询官方的活动名称接口 成功返回结果

type TaobaoSingletreasureActivityNameQueryResultDto

type TaobaoSingletreasureActivityNameQueryResultDto struct {
	// data结果
	DataList []ActivityNameCategoryDto `json:"data_list,omitempty" xml:"data_list>activity_name_category_dto,omitempty"`
	// 请求返回描述信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 请求返回码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityNameQueryResultDto 结构体

type TaobaoSingletreasureActivityQueryAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityQueryAPIRequest 查询活动列表接口 API请求 taobao.singletreasure.activity.query

查询活动列表接口

func NewTaobaoSingletreasureActivityQueryRequest

func NewTaobaoSingletreasureActivityQueryRequest() *TaobaoSingletreasureActivityQueryAPIRequest

NewTaobaoSingletreasureActivityQueryRequest 初始化TaobaoSingletreasureActivityQueryAPIRequest对象

func (TaobaoSingletreasureActivityQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSingletreasureActivityQueryAPIRequest) GetQuery added in v1.2.0

GetQuery Query Getter

func (*TaobaoSingletreasureActivityQueryAPIRequest) SetQuery added in v1.2.0

SetQuery is Query Setter 查询对象

type TaobaoSingletreasureActivityQueryAPIResponse

type TaobaoSingletreasureActivityQueryAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityQueryAPIResponseModel
}

TaobaoSingletreasureActivityQueryAPIResponse 查询活动列表接口 API返回值 taobao.singletreasure.activity.query

查询活动列表接口

type TaobaoSingletreasureActivityQueryAPIResponseModel added in v1.2.0

type TaobaoSingletreasureActivityQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"singletreasure_activity_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *TaobaoSingletreasureActivityQueryResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoSingletreasureActivityQueryAPIResponseModel is 查询活动列表接口 成功返回结果

type TaobaoSingletreasureActivityQueryResultDto

type TaobaoSingletreasureActivityQueryResultDto struct {
	// 查询结果
	DataList []ActivityInfo `json:"data_list,omitempty" xml:"data_list>activity_info,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误编码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 页码
	PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"`
	// 总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 返回结果个数
	Size int64 `json:"size,omitempty" xml:"size,omitempty"`
	// 系统执行是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityQueryResultDto 结构体

type TaobaoSingletreasureActivityUpdateAPIRequest added in v1.2.0

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

TaobaoSingletreasureActivityUpdateAPIRequest 修改活动接口 API请求 taobao.singletreasure.activity.update

修改活动接口

func NewTaobaoSingletreasureActivityUpdateRequest

func NewTaobaoSingletreasureActivityUpdateRequest() *TaobaoSingletreasureActivityUpdateAPIRequest

NewTaobaoSingletreasureActivityUpdateRequest 初始化TaobaoSingletreasureActivityUpdateAPIRequest对象

func (TaobaoSingletreasureActivityUpdateAPIRequest) GetActivityInfo added in v1.2.0

GetActivityInfo ActivityInfo Getter

func (TaobaoSingletreasureActivityUpdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSingletreasureActivityUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoSingletreasureActivityUpdateAPIRequest) SetActivityInfo added in v1.2.0

SetActivityInfo is ActivityInfo Setter 系统入参

type TaobaoSingletreasureActivityUpdateAPIResponse

type TaobaoSingletreasureActivityUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoSingletreasureActivityUpdateAPIResponseModel
}

TaobaoSingletreasureActivityUpdateAPIResponse 修改活动接口 API返回值 taobao.singletreasure.activity.update

修改活动接口

type TaobaoSingletreasureActivityUpdateAPIResponseModel added in v1.2.0

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

TaobaoSingletreasureActivityUpdateAPIResponseModel is 修改活动接口 成功返回结果

type TaobaoSingletreasureActivityUpdateResultDto

type TaobaoSingletreasureActivityUpdateResultDto struct {
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误编码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 套餐编辑是否成功
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// 系统是否执行成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoSingletreasureActivityUpdateResultDto 结构体

Source Files

Jump to

Keyboard shortcuts

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