newretail

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package newretail 包含新零售API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaItApAddressGetAPIRequest added in v1.3.4

func ReleaseAlibabaItApAddressGetAPIRequest(v *AlibabaItApAddressGetAPIRequest)

ReleaseAlibabaItApAddressGetAPIRequest 将 AlibabaItApAddressGetAPIRequest 放入 sync.Pool

func ReleaseAlibabaItApAddressGetAPIResponse added in v1.3.4

func ReleaseAlibabaItApAddressGetAPIResponse(v *AlibabaItApAddressGetAPIResponse)

ReleaseAlibabaItApAddressGetAPIResponse 将 AlibabaItApAddressGetAPIResponse 保存到 sync.Pool

func ReleaseAlibabaItApAddressGetResult added in v1.3.4

func ReleaseAlibabaItApAddressGetResult(v *AlibabaItApAddressGetResult)

ReleaseAlibabaItApAddressGetResult 释放AlibabaItApAddressGetResult

func ReleaseAlibabaItApAddressSetAPIRequest added in v1.3.4

func ReleaseAlibabaItApAddressSetAPIRequest(v *AlibabaItApAddressSetAPIRequest)

ReleaseAlibabaItApAddressSetAPIRequest 将 AlibabaItApAddressSetAPIRequest 放入 sync.Pool

func ReleaseAlibabaItApAddressSetAPIResponse added in v1.3.4

func ReleaseAlibabaItApAddressSetAPIResponse(v *AlibabaItApAddressSetAPIResponse)

ReleaseAlibabaItApAddressSetAPIResponse 将 AlibabaItApAddressSetAPIResponse 保存到 sync.Pool

func ReleaseAlibabaItApAddressSetResult added in v1.3.4

func ReleaseAlibabaItApAddressSetResult(v *AlibabaItApAddressSetResult)

ReleaseAlibabaItApAddressSetResult 释放AlibabaItApAddressSetResult

func ReleaseApAddressInfo added in v1.3.4

func ReleaseApAddressInfo(v *ApAddressInfo)

ReleaseApAddressInfo 释放ApAddressInfo

Types

type AlibabaItApAddressGetAPIRequest added in v1.2.0

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

AlibabaItApAddressGetAPIRequest getApAddressByMacNew API请求 alibaba.it.ap.address.get

根据ap 的mac地址查询ap的结构化位置信息

func GetAlibabaItApAddressGetAPIRequest added in v1.3.4

func GetAlibabaItApAddressGetAPIRequest() *AlibabaItApAddressGetAPIRequest

GetAlibabaItApAddressGetRequest 从 sync.Pool 获取 AlibabaItApAddressGetAPIRequest

func NewAlibabaItApAddressGetRequest

func NewAlibabaItApAddressGetRequest() *AlibabaItApAddressGetAPIRequest

NewAlibabaItApAddressGetRequest 初始化AlibabaItApAddressGetAPIRequest对象

func (AlibabaItApAddressGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItApAddressGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItApAddressGetAPIRequest) GetAppKeyInternal added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetAppKeyInternal() string

GetAppKeyInternal AppKeyInternal Getter

func (AlibabaItApAddressGetAPIRequest) GetLanguage added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetLanguage() string

GetLanguage Language Getter

func (AlibabaItApAddressGetAPIRequest) GetMac added in v1.2.0

GetMac Mac Getter

func (AlibabaItApAddressGetAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaItApAddressGetAPIRequest) GetRawParams() model.Params

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

func (AlibabaItApAddressGetAPIRequest) GetSignature added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetSignature() string

GetSignature Signature Getter

func (AlibabaItApAddressGetAPIRequest) GetTimestampInternal added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetTimestampInternal() int64

GetTimestampInternal TimestampInternal Getter

func (*AlibabaItApAddressGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaItApAddressGetAPIRequest) SetAppKeyInternal added in v1.2.0

func (r *AlibabaItApAddressGetAPIRequest) SetAppKeyInternal(_appKeyInternal string) error

SetAppKeyInternal is AppKeyInternal Setter 分配的ak

func (*AlibabaItApAddressGetAPIRequest) SetLanguage added in v1.2.0

func (r *AlibabaItApAddressGetAPIRequest) SetLanguage(_language string) error

SetLanguage is Language Setter 语言

func (*AlibabaItApAddressGetAPIRequest) SetMac added in v1.2.0

SetMac is Mac Setter ap的mac

func (*AlibabaItApAddressGetAPIRequest) SetSignature added in v1.2.0

func (r *AlibabaItApAddressGetAPIRequest) SetSignature(_signature string) error

SetSignature is Signature Setter 签名

func (*AlibabaItApAddressGetAPIRequest) SetTimestampInternal added in v1.2.0

func (r *AlibabaItApAddressGetAPIRequest) SetTimestampInternal(_timestampInternal int64) error

SetTimestampInternal is TimestampInternal Setter 当前时间戳,毫秒

type AlibabaItApAddressGetAPIResponse

type AlibabaItApAddressGetAPIResponse struct {
	model.CommonResponse
	AlibabaItApAddressGetAPIResponseModel
}

AlibabaItApAddressGetAPIResponse getApAddressByMacNew API返回值 alibaba.it.ap.address.get

根据ap 的mac地址查询ap的结构化位置信息

func GetAlibabaItApAddressGetAPIResponse added in v1.3.4

func GetAlibabaItApAddressGetAPIResponse() *AlibabaItApAddressGetAPIResponse

GetAlibabaItApAddressGetAPIResponse 从 sync.Pool 获取 AlibabaItApAddressGetAPIResponse

func (*AlibabaItApAddressGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaItApAddressGetAPIResponseModel added in v1.2.0

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

AlibabaItApAddressGetAPIResponseModel is getApAddressByMacNew 成功返回结果

func (*AlibabaItApAddressGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaItApAddressGetResult

type AlibabaItApAddressGetResult struct {
	// 返回的错误message
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 返回的位置结构体
	Data *ApAddressInfo `json:"data,omitempty" xml:"data,omitempty"`
	// 返回的错误码
	ErrorCode int64 `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 接口返回成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaItApAddressGetResult 结构体

func GetAlibabaItApAddressGetResult added in v1.3.4

func GetAlibabaItApAddressGetResult() *AlibabaItApAddressGetResult

GetAlibabaItApAddressGetResult() 从对象池中获取AlibabaItApAddressGetResult

type AlibabaItApAddressSetAPIRequest added in v1.2.0

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

AlibabaItApAddressSetAPIRequest setApAddressNew API请求 alibaba.it.ap.address.set

该接口可为ISV系统提供 ap位置信息维护的功能

func GetAlibabaItApAddressSetAPIRequest added in v1.3.4

func GetAlibabaItApAddressSetAPIRequest() *AlibabaItApAddressSetAPIRequest

GetAlibabaItApAddressSetRequest 从 sync.Pool 获取 AlibabaItApAddressSetAPIRequest

func NewAlibabaItApAddressSetRequest

func NewAlibabaItApAddressSetRequest() *AlibabaItApAddressSetAPIRequest

NewAlibabaItApAddressSetRequest 初始化AlibabaItApAddressSetAPIRequest对象

func (AlibabaItApAddressSetAPIRequest) GetApAreaName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApAreaName() string

GetApAreaName ApAreaName Getter

func (AlibabaItApAddressSetAPIRequest) GetApBuildingName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApBuildingName() string

GetApBuildingName ApBuildingName Getter

func (AlibabaItApAddressSetAPIRequest) GetApCampusName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApCampusName() string

GetApCampusName ApCampusName Getter

func (AlibabaItApAddressSetAPIRequest) GetApCityName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApCityName() string

GetApCityName ApCityName Getter

func (AlibabaItApAddressSetAPIRequest) GetApFloor added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApFloor() string

GetApFloor ApFloor Getter

func (AlibabaItApAddressSetAPIRequest) GetApNationName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApNationName() string

GetApNationName ApNationName Getter

func (AlibabaItApAddressSetAPIRequest) GetApProvinceName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApProvinceName() string

GetApProvinceName ApProvinceName Getter

func (AlibabaItApAddressSetAPIRequest) GetApUnitName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApUnitName() string

GetApUnitName ApUnitName Getter

func (AlibabaItApAddressSetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItApAddressSetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItApAddressSetAPIRequest) GetAppKeyInternal added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetAppKeyInternal() string

GetAppKeyInternal AppKeyInternal Getter

func (AlibabaItApAddressSetAPIRequest) GetDirection added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetDirection() string

GetDirection Direction Getter

func (AlibabaItApAddressSetAPIRequest) GetLat added in v1.2.0

GetLat Lat Getter

func (AlibabaItApAddressSetAPIRequest) GetLng added in v1.2.0

GetLng Lng Getter

func (AlibabaItApAddressSetAPIRequest) GetMac added in v1.2.0

GetMac Mac Getter

func (AlibabaItApAddressSetAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaItApAddressSetAPIRequest) GetRawParams() model.Params

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

func (AlibabaItApAddressSetAPIRequest) GetSignature added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetSignature() string

GetSignature Signature Getter

func (AlibabaItApAddressSetAPIRequest) GetTimestampInternal added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetTimestampInternal() int64

GetTimestampInternal TimestampInternal Getter

func (*AlibabaItApAddressSetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaItApAddressSetAPIRequest) SetApAreaName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApAreaName(_apAreaName string) error

SetApAreaName is ApAreaName Setter 区域

func (*AlibabaItApAddressSetAPIRequest) SetApBuildingName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApBuildingName(_apBuildingName string) error

SetApBuildingName is ApBuildingName Setter 楼栋

func (*AlibabaItApAddressSetAPIRequest) SetApCampusName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApCampusName(_apCampusName string) error

SetApCampusName is ApCampusName Setter 园区/门店

func (*AlibabaItApAddressSetAPIRequest) SetApCityName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApCityName(_apCityName string) error

SetApCityName is ApCityName Setter 城市

func (*AlibabaItApAddressSetAPIRequest) SetApFloor added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApFloor(_apFloor string) error

SetApFloor is ApFloor Setter 楼层

func (*AlibabaItApAddressSetAPIRequest) SetApNationName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApNationName(_apNationName string) error

SetApNationName is ApNationName Setter 国家

func (*AlibabaItApAddressSetAPIRequest) SetApProvinceName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApProvinceName(_apProvinceName string) error

SetApProvinceName is ApProvinceName Setter 省份

func (*AlibabaItApAddressSetAPIRequest) SetApUnitName added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetApUnitName(_apUnitName string) error

SetApUnitName is ApUnitName Setter ap空间单元名称

func (*AlibabaItApAddressSetAPIRequest) SetAppKeyInternal added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetAppKeyInternal(_appKeyInternal string) error

SetAppKeyInternal is AppKeyInternal Setter 分配的内部ak

func (*AlibabaItApAddressSetAPIRequest) SetDirection added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetDirection(_direction string) error

SetDirection is Direction Setter 方位

func (*AlibabaItApAddressSetAPIRequest) SetLat added in v1.2.0

SetLat is Lat Setter 纬度

func (*AlibabaItApAddressSetAPIRequest) SetLng added in v1.2.0

SetLng is Lng Setter 经度

func (*AlibabaItApAddressSetAPIRequest) SetMac added in v1.2.0

SetMac is Mac Setter ap mac地址

func (*AlibabaItApAddressSetAPIRequest) SetSignature added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetSignature(_signature string) error

SetSignature is Signature Setter 签名

func (*AlibabaItApAddressSetAPIRequest) SetTimestampInternal added in v1.2.0

func (r *AlibabaItApAddressSetAPIRequest) SetTimestampInternal(_timestampInternal int64) error

SetTimestampInternal is TimestampInternal Setter 时间戳,毫秒

type AlibabaItApAddressSetAPIResponse

type AlibabaItApAddressSetAPIResponse struct {
	model.CommonResponse
	AlibabaItApAddressSetAPIResponseModel
}

AlibabaItApAddressSetAPIResponse setApAddressNew API返回值 alibaba.it.ap.address.set

该接口可为ISV系统提供 ap位置信息维护的功能

func GetAlibabaItApAddressSetAPIResponse added in v1.3.4

func GetAlibabaItApAddressSetAPIResponse() *AlibabaItApAddressSetAPIResponse

GetAlibabaItApAddressSetAPIResponse 从 sync.Pool 获取 AlibabaItApAddressSetAPIResponse

func (*AlibabaItApAddressSetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaItApAddressSetAPIResponseModel added in v1.2.0

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

AlibabaItApAddressSetAPIResponseModel is setApAddressNew 成功返回结果

func (*AlibabaItApAddressSetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaItApAddressSetResult

type AlibabaItApAddressSetResult struct {
	// 返回内容
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 返回的message
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 返回的错误码
	ErrorCode int64 `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 返回结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaItApAddressSetResult 结构体

func GetAlibabaItApAddressSetResult added in v1.3.4

func GetAlibabaItApAddressSetResult() *AlibabaItApAddressSetResult

GetAlibabaItApAddressSetResult() 从对象池中获取AlibabaItApAddressSetResult

type ApAddressInfo

type ApAddressInfo struct {
	// ap mac
	Mac string `json:"mac,omitempty" xml:"mac,omitempty"`
	// ap的名称
	ApName string `json:"ap_name,omitempty" xml:"ap_name,omitempty"`
	// ap所在组名
	ApGroup string `json:"ap_group,omitempty" xml:"ap_group,omitempty"`
	// 国家
	ApNationName string `json:"ap_nation_name,omitempty" xml:"ap_nation_name,omitempty"`
	// 省份
	ApProvinceName string `json:"ap_province_name,omitempty" xml:"ap_province_name,omitempty"`
	// 城市
	ApCityName string `json:"ap_city_name,omitempty" xml:"ap_city_name,omitempty"`
	// 区域
	ApAreaName string `json:"ap_area_name,omitempty" xml:"ap_area_name,omitempty"`
	// 园区/门店
	ApCampusName string `json:"ap_campus_name,omitempty" xml:"ap_campus_name,omitempty"`
	// 楼栋
	ApBuildingName string `json:"ap_building_name,omitempty" xml:"ap_building_name,omitempty"`
	// 楼层
	ApFloor string `json:"ap_floor,omitempty" xml:"ap_floor,omitempty"`
	// 空间单元名称
	ApUnitName string `json:"ap_unit_name,omitempty" xml:"ap_unit_name,omitempty"`
	// 方位
	Direction string `json:"direction,omitempty" xml:"direction,omitempty"`
	// 经度
	Lng string `json:"lng,omitempty" xml:"lng,omitempty"`
	// 纬度
	Lat string `json:"lat,omitempty" xml:"lat,omitempty"`
	// 语言
	Language string `json:"language,omitempty" xml:"language,omitempty"`
	// 空间单元id
	ApUnitId int64 `json:"ap_unit_id,omitempty" xml:"ap_unit_id,omitempty"`
}

ApAddressInfo 结构体

func GetApAddressInfo added in v1.3.4

func GetApAddressInfo() *ApAddressInfo

GetApAddressInfo() 从对象池中获取ApAddressInfo

Jump to

Keyboard shortcuts

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