smartstore

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package smartstore 包含智慧门店相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	// 地域名称.如北京市,杭州市,西湖区,每一个area_id 都代表了一个具体的地区.
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 具体一个地区的邮编
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// 标准行政区域代码.参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20120105_402777427.htm
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 区域类型.area区域 1:country/国家;2:province/省/自治区/直辖市;3:city/地区(省下面的地级市);4:district/县/市(县级市)/区;abroad:海外. 比如北京市的area_type = 2,朝阳区是北京市的一个区,所以朝阳区的area_type = 4.
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 父节点区域标识.如北京市的area_id是110100,朝阳区是北京市的一个区,所以朝阳区的parent_id就是北京市的area_id.
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
}

Area 结构体

type Hasdevicecodelist

type Hasdevicecodelist struct {
	// 设备名称
	DeviceName string `json:"device_name,omitempty" xml:"device_name,omitempty"`
	// 设备类型
	DeviceType string `json:"device_type,omitempty" xml:"device_type,omitempty"`
	// 设备code
	DeviceCode string `json:"device_code,omitempty" xml:"device_code,omitempty"`
}

Hasdevicecodelist 结构体

type Needdevicecodelist

type Needdevicecodelist struct {
	// 设备名称
	DeviceName string `json:"device_name,omitempty" xml:"device_name,omitempty"`
	// 设备类型
	DeviceType string `json:"device_type,omitempty" xml:"device_type,omitempty"`
}

Needdevicecodelist 结构体

type Storelist

type Storelist struct {
	// 需要的设备code列表
	NeedDeviceCodeList []Needdevicecodelist `json:"need_device_code_list,omitempty" xml:"need_device_code_list>needdevicecodelist,omitempty"`
	// 已有的设备code列表
	HasDeviceCodeList []Hasdevicecodelist `json:"has_device_code_list,omitempty" xml:"has_device_code_list>hasdevicecodelist,omitempty"`
	// 商场介绍
	MallIntroduce string `json:"mall_introduce,omitempty" xml:"mall_introduce,omitempty"`
	// 商场所在省份
	MallProvince string `json:"mall_province,omitempty" xml:"mall_province,omitempty"`
	// 门店名称
	StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
	// 门店地址
	StoreAddress string `json:"store_address,omitempty" xml:"store_address,omitempty"`
	// 商场地址
	MallAddress string `json:"mall_address,omitempty" xml:"mall_address,omitempty"`
	// 商场所在区
	MallArea string `json:"mall_area,omitempty" xml:"mall_area,omitempty"`
	// 商场所在城市
	MallCity string `json:"mall_city,omitempty" xml:"mall_city,omitempty"`
	// isv appKey
	AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"`
	// 商场名称
	MallName string `json:"mall_name,omitempty" xml:"mall_name,omitempty"`
	// 门店id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
}

Storelist 结构体

type TaobaoIstoreAreasGetAPIRequest added in v1.2.0

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

TaobaoIstoreAreasGetAPIRequest 智慧门店区域编码查询 API请求 taobao.istore.areas.get

查询标准地址区域代码信息。可以直接参考最新的行政区域代码: <a href="http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html">http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html</a>

func NewTaobaoIstoreAreasGetRequest

func NewTaobaoIstoreAreasGetRequest() *TaobaoIstoreAreasGetAPIRequest

NewTaobaoIstoreAreasGetRequest 初始化TaobaoIstoreAreasGetAPIRequest对象

func (TaobaoIstoreAreasGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoIstoreAreasGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoIstoreAreasGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoIstoreAreasGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoIstoreAreasGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoIstoreAreasGetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoIstoreAreasGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoIstoreAreasGetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoIstoreAreasGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoIstoreAreasGetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip.

type TaobaoIstoreAreasGetAPIResponse

type TaobaoIstoreAreasGetAPIResponse struct {
	model.CommonResponse
	TaobaoIstoreAreasGetAPIResponseModel
}

TaobaoIstoreAreasGetAPIResponse 智慧门店区域编码查询 API返回值 taobao.istore.areas.get

查询标准地址区域代码信息。可以直接参考最新的行政区域代码: <a href="http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html">http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html</a>

type TaobaoIstoreAreasGetAPIResponseModel added in v1.2.0

type TaobaoIstoreAreasGetAPIResponseModel struct {
	XMLName xml.Name `xml:"istore_areas_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 地址区域信息列表.返回的Area包含的具体信息为入参fields请求的字段信息 。
	Areas []Area `json:"areas,omitempty" xml:"areas>area,omitempty"`
}

TaobaoIstoreAreasGetAPIResponseModel is 智慧门店区域编码查询 成功返回结果

type TaobaoSmartstoreDeviceStatusFeedbackAPIRequest added in v1.2.0

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

TaobaoSmartstoreDeviceStatusFeedbackAPIRequest 设备在线状态回流 API请求 taobao.smartstore.device.status.feedback

智能硬件设备状态回流

func NewTaobaoSmartstoreDeviceStatusFeedbackRequest

func NewTaobaoSmartstoreDeviceStatusFeedbackRequest() *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest

NewTaobaoSmartstoreDeviceStatusFeedbackRequest 初始化TaobaoSmartstoreDeviceStatusFeedbackAPIRequest对象

func (TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetDeviceCode added in v1.2.0

GetDeviceCode DeviceCode Getter

func (TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetStatus added in v1.2.0

GetStatus Status Getter

func (TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetStatusTime added in v1.2.0

GetStatusTime StatusTime Getter

func (*TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetDeviceCode added in v1.2.0

func (r *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error

SetDeviceCode is DeviceCode Setter 设备编码

func (*TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetStatus added in v1.2.0

SetStatus is Status Setter ONLINE_WITH_CONTENT("ONLINE_WITH_CONTENT", "设备在线"), OFFLINE("OFFLINE", "设备断线");

func (*TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetStatusTime added in v1.2.0

func (r *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetStatusTime(_statusTime string) error

SetStatusTime is StatusTime Setter 当前状态的时间

type TaobaoSmartstoreDeviceStatusFeedbackAPIResponse

type TaobaoSmartstoreDeviceStatusFeedbackAPIResponse struct {
	model.CommonResponse
	TaobaoSmartstoreDeviceStatusFeedbackAPIResponseModel
}

TaobaoSmartstoreDeviceStatusFeedbackAPIResponse 设备在线状态回流 API返回值 taobao.smartstore.device.status.feedback

智能硬件设备状态回流

type TaobaoSmartstoreDeviceStatusFeedbackAPIResponseModel added in v1.2.0

type TaobaoSmartstoreDeviceStatusFeedbackAPIResponseModel struct {
	XMLName xml.Name `xml:"smartstore_device_status_feedback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoSmartstoreDeviceStatusFeedbackAPIResponseModel is 设备在线状态回流 成功返回结果

type TmallPopupstoreActivityDeviceQueryAPIRequest added in v1.2.0

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

TmallPopupstoreActivityDeviceQueryAPIRequest 根据活动id查询活动相关快闪店及设备信息 API请求 tmall.popupstore.activity.device.query

查询某一活动的deviceCode的部署情况

func NewTmallPopupstoreActivityDeviceQueryRequest

func NewTmallPopupstoreActivityDeviceQueryRequest() *TmallPopupstoreActivityDeviceQueryAPIRequest

NewTmallPopupstoreActivityDeviceQueryRequest 初始化TmallPopupstoreActivityDeviceQueryAPIRequest对象

func (TmallPopupstoreActivityDeviceQueryAPIRequest) GetActivityId added in v1.2.0

GetActivityId ActivityId Getter

func (TmallPopupstoreActivityDeviceQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPopupstoreActivityDeviceQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPopupstoreActivityDeviceQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallPopupstoreActivityDeviceQueryAPIRequest) SetActivityId added in v1.2.0

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

SetActivityId is ActivityId Setter ISV的活动ID

type TmallPopupstoreActivityDeviceQueryAPIResponse

type TmallPopupstoreActivityDeviceQueryAPIResponse struct {
	model.CommonResponse
	TmallPopupstoreActivityDeviceQueryAPIResponseModel
}

TmallPopupstoreActivityDeviceQueryAPIResponse 根据活动id查询活动相关快闪店及设备信息 API返回值 tmall.popupstore.activity.device.query

查询某一活动的deviceCode的部署情况

type TmallPopupstoreActivityDeviceQueryAPIResponseModel added in v1.2.0

type TmallPopupstoreActivityDeviceQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_popupstore_activity_device_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参对象
	ResultDto *TmallPopupstoreActivityDeviceQueryResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"`
}

TmallPopupstoreActivityDeviceQueryAPIResponseModel is 根据活动id查询活动相关快闪店及设备信息 成功返回结果

type TmallPopupstoreActivityDeviceQueryResult

type TmallPopupstoreActivityDeviceQueryResult struct {
	// 门店列表
	StoreList []Storelist `json:"store_list,omitempty" xml:"store_list>storelist,omitempty"`
	// 参与活动的品牌名,逗号分割
	SellerNames string `json:"seller_names,omitempty" xml:"seller_names,omitempty"`
	// 活动结束时间
	ActivityEndTime string `json:"activity_end_time,omitempty" xml:"activity_end_time,omitempty"`
	// 活动名称
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 活动开始时间
	ActivityStartTime string `json:"activity_start_time,omitempty" xml:"activity_start_time,omitempty"`
	// 活动状态
	ActivityStatus int64 `json:"activity_status,omitempty" xml:"activity_status,omitempty"`
}

TmallPopupstoreActivityDeviceQueryResult 结构体

type TmallPopupstoreActivityDeviceQueryResultDto

type TmallPopupstoreActivityDeviceQueryResultDto struct {
	// 结果code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误msg
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 结果数据条数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 返回结果
	Result *TmallPopupstoreActivityDeviceQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

TmallPopupstoreActivityDeviceQueryResultDto 结构体

type TmallPopupstoreActivityQueryAPIRequest added in v1.2.0

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

TmallPopupstoreActivityQueryAPIRequest 查询某段时间内的快闪活动列表 API请求 tmall.popupstore.activity.query

提供给ISV查询某一时间段内包含指定appKey的活动列表

func NewTmallPopupstoreActivityQueryRequest

func NewTmallPopupstoreActivityQueryRequest() *TmallPopupstoreActivityQueryAPIRequest

NewTmallPopupstoreActivityQueryRequest 初始化TmallPopupstoreActivityQueryAPIRequest对象

func (TmallPopupstoreActivityQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallPopupstoreActivityQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPopupstoreActivityQueryAPIRequest) GetApiParams added in v1.2.0

func (r TmallPopupstoreActivityQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPopupstoreActivityQueryAPIRequest) GetEndDate added in v1.2.0

GetEndDate EndDate Getter

func (TmallPopupstoreActivityQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (TmallPopupstoreActivityQueryAPIRequest) GetStartDate added in v1.2.0

GetStartDate StartDate Getter

func (*TmallPopupstoreActivityQueryAPIRequest) SetEndDate added in v1.2.0

func (r *TmallPopupstoreActivityQueryAPIRequest) SetEndDate(_endDate string) error

SetEndDate is EndDate Setter 查询结束时间,yyyy-MM-dd

func (*TmallPopupstoreActivityQueryAPIRequest) SetStartDate added in v1.2.0

func (r *TmallPopupstoreActivityQueryAPIRequest) SetStartDate(_startDate string) error

SetStartDate is StartDate Setter 查询开始时间,yyyy-MM-dd

type TmallPopupstoreActivityQueryAPIResponse

type TmallPopupstoreActivityQueryAPIResponse struct {
	model.CommonResponse
	TmallPopupstoreActivityQueryAPIResponseModel
}

TmallPopupstoreActivityQueryAPIResponse 查询某段时间内的快闪活动列表 API返回值 tmall.popupstore.activity.query

提供给ISV查询某一时间段内包含指定appKey的活动列表

type TmallPopupstoreActivityQueryAPIResponseModel added in v1.2.0

type TmallPopupstoreActivityQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_popupstore_activity_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参对象
	ResultDto *TmallPopupstoreActivityQueryResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"`
}

TmallPopupstoreActivityQueryAPIResponseModel is 查询某段时间内的快闪活动列表 成功返回结果

type TmallPopupstoreActivityQueryResult

type TmallPopupstoreActivityQueryResult struct {
	// 活动结束时间
	ActivityEndTime string `json:"activity_end_time,omitempty" xml:"activity_end_time,omitempty"`
	// 活动名称
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 活动开始时间
	ActivityStartTime string `json:"activity_start_time,omitempty" xml:"activity_start_time,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 0:正常状态,-1:删除状态,-2:活动取消
	ActivityStatus int64 `json:"activity_status,omitempty" xml:"activity_status,omitempty"`
}

TmallPopupstoreActivityQueryResult 结构体

type TmallPopupstoreActivityQueryResultDto

type TmallPopupstoreActivityQueryResultDto struct {
	// 返回结果
	ResultList []TmallPopupstoreActivityQueryResult `json:"result_list,omitempty" xml:"result_list>tmall_popupstore_activity_query_result,omitempty"`
	// 返回code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误msg
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 返回数据条数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

TmallPopupstoreActivityQueryResultDto 结构体

type TmallPopupstoreItemDiscountPriceAPIRequest added in v1.2.0

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

TmallPopupstoreItemDiscountPriceAPIRequest 商品优惠价格查询 API请求 tmall.popupstore.item.discount.price

商品优惠价格查询

func NewTmallPopupstoreItemDiscountPriceRequest

func NewTmallPopupstoreItemDiscountPriceRequest() *TmallPopupstoreItemDiscountPriceAPIRequest

NewTmallPopupstoreItemDiscountPriceRequest 初始化TmallPopupstoreItemDiscountPriceAPIRequest对象

func (TmallPopupstoreItemDiscountPriceAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPopupstoreItemDiscountPriceAPIRequest) GetApiParams added in v1.2.0

func (r TmallPopupstoreItemDiscountPriceAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPopupstoreItemDiscountPriceAPIRequest) GetItemIds added in v1.2.0

GetItemIds ItemIds Getter

func (TmallPopupstoreItemDiscountPriceAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallPopupstoreItemDiscountPriceAPIRequest) SetItemIds added in v1.2.0

func (r *TmallPopupstoreItemDiscountPriceAPIRequest) SetItemIds(_itemIds []string) error

SetItemIds is ItemIds Setter 商品id列表

type TmallPopupstoreItemDiscountPriceAPIResponse

type TmallPopupstoreItemDiscountPriceAPIResponse struct {
	model.CommonResponse
	TmallPopupstoreItemDiscountPriceAPIResponseModel
}

TmallPopupstoreItemDiscountPriceAPIResponse 商品优惠价格查询 API返回值 tmall.popupstore.item.discount.price

商品优惠价格查询

type TmallPopupstoreItemDiscountPriceAPIResponseModel added in v1.2.0

type TmallPopupstoreItemDiscountPriceAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_popupstore_item_discount_price_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参对象
	ResultDto *TmallPopupstoreItemDiscountPriceResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"`
}

TmallPopupstoreItemDiscountPriceAPIResponseModel is 商品优惠价格查询 成功返回结果

type TmallPopupstoreItemDiscountPriceResultDto

type TmallPopupstoreItemDiscountPriceResultDto struct {
	// 错误码code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误msg
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 实际结果
	ResultList string `json:"result_list,omitempty" xml:"result_list,omitempty"`
	// 数据条数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

TmallPopupstoreItemDiscountPriceResultDto 结构体

Jump to

Keyboard shortcuts

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