newretail

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

新零售API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItApAddressGetAPIRequest) GetAppKeyInternal added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetAppKeyInternal() string

Get AppKeyInternal Getter

func (AlibabaItApAddressGetAPIRequest) GetLanguage added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetLanguage() string

Get Language Getter

func (AlibabaItApAddressGetAPIRequest) GetMac added in v1.2.0

Get Mac Getter

func (AlibabaItApAddressGetAPIRequest) GetSignature added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetSignature() string

Get Signature Getter

func (AlibabaItApAddressGetAPIRequest) GetTimestampInternal added in v1.2.0

func (r AlibabaItApAddressGetAPIRequest) GetTimestampInternal() int64

Get TimestampInternal Getter

func (*AlibabaItApAddressGetAPIRequest) SetAppKeyInternal added in v1.2.0

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

Set is AppKeyInternal Setter 分配的ak

func (*AlibabaItApAddressGetAPIRequest) SetLanguage added in v1.2.0

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

Set is Language Setter 语言

func (*AlibabaItApAddressGetAPIRequest) SetMac added in v1.2.0

Set is Mac Setter ap的mac

func (*AlibabaItApAddressGetAPIRequest) SetSignature added in v1.2.0

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

Set is Signature Setter 签名

func (*AlibabaItApAddressGetAPIRequest) SetTimestampInternal added in v1.2.0

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

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

type AlibabaItApAddressGetAPIResponse

type AlibabaItApAddressGetAPIResponse struct {
	model.CommonResponse
	AlibabaItApAddressGetAPIResponseModel
}
AlibabaItApAddressGetAPIResponse

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

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

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 成功返回结果

type AlibabaItApAddressGetResult

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

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 NewAlibabaItApAddressSetRequest

func NewAlibabaItApAddressSetRequest() *AlibabaItApAddressSetAPIRequest

NewAlibabaItApAddressSetRequest 初始化AlibabaItApAddressSetAPIRequest对象

func (AlibabaItApAddressSetAPIRequest) GetApAreaName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApAreaName() string

Get ApAreaName Getter

func (AlibabaItApAddressSetAPIRequest) GetApBuildingName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApBuildingName() string

Get ApBuildingName Getter

func (AlibabaItApAddressSetAPIRequest) GetApCampusName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApCampusName() string

Get ApCampusName Getter

func (AlibabaItApAddressSetAPIRequest) GetApCityName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApCityName() string

Get ApCityName Getter

func (AlibabaItApAddressSetAPIRequest) GetApFloor added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApFloor() string

Get ApFloor Getter

func (AlibabaItApAddressSetAPIRequest) GetApNationName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApNationName() string

Get ApNationName Getter

func (AlibabaItApAddressSetAPIRequest) GetApProvinceName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApProvinceName() string

Get ApProvinceName Getter

func (AlibabaItApAddressSetAPIRequest) GetApUnitName added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetApUnitName() string

Get 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() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItApAddressSetAPIRequest) GetAppKeyInternal added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetAppKeyInternal() string

Get AppKeyInternal Getter

func (AlibabaItApAddressSetAPIRequest) GetDirection added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetDirection() string

Get Direction Getter

func (AlibabaItApAddressSetAPIRequest) GetLat added in v1.2.0

Get Lat Getter

func (AlibabaItApAddressSetAPIRequest) GetLng added in v1.2.0

Get Lng Getter

func (AlibabaItApAddressSetAPIRequest) GetMac added in v1.2.0

Get Mac Getter

func (AlibabaItApAddressSetAPIRequest) GetSignature added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetSignature() string

Get Signature Getter

func (AlibabaItApAddressSetAPIRequest) GetTimestampInternal added in v1.2.0

func (r AlibabaItApAddressSetAPIRequest) GetTimestampInternal() int64

Get TimestampInternal Getter

func (*AlibabaItApAddressSetAPIRequest) SetApAreaName added in v1.2.0

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

Set is ApAreaName Setter 区域

func (*AlibabaItApAddressSetAPIRequest) SetApBuildingName added in v1.2.0

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

Set is ApBuildingName Setter 楼栋

func (*AlibabaItApAddressSetAPIRequest) SetApCampusName added in v1.2.0

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

Set is ApCampusName Setter 园区/门店

func (*AlibabaItApAddressSetAPIRequest) SetApCityName added in v1.2.0

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

Set is ApCityName Setter 城市

func (*AlibabaItApAddressSetAPIRequest) SetApFloor added in v1.2.0

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

Set is ApFloor Setter 楼层

func (*AlibabaItApAddressSetAPIRequest) SetApNationName added in v1.2.0

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

Set is ApNationName Setter 国家

func (*AlibabaItApAddressSetAPIRequest) SetApProvinceName added in v1.2.0

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

Set is ApProvinceName Setter 省份

func (*AlibabaItApAddressSetAPIRequest) SetApUnitName added in v1.2.0

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

Set is ApUnitName Setter ap空间单元名称

func (*AlibabaItApAddressSetAPIRequest) SetAppKeyInternal added in v1.2.0

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

Set is AppKeyInternal Setter 分配的内部ak

func (*AlibabaItApAddressSetAPIRequest) SetDirection added in v1.2.0

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

Set is Direction Setter 方位

func (*AlibabaItApAddressSetAPIRequest) SetLat added in v1.2.0

Set is Lat Setter 纬度

func (*AlibabaItApAddressSetAPIRequest) SetLng added in v1.2.0

Set is Lng Setter 经度

func (*AlibabaItApAddressSetAPIRequest) SetMac added in v1.2.0

Set is Mac Setter ap mac地址

func (*AlibabaItApAddressSetAPIRequest) SetSignature added in v1.2.0

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

Set is Signature Setter 签名

func (*AlibabaItApAddressSetAPIRequest) SetTimestampInternal added in v1.2.0

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

Set is TimestampInternal Setter 时间戳,毫秒

type AlibabaItApAddressSetAPIResponse

type AlibabaItApAddressSetAPIResponse struct {
	model.CommonResponse
	AlibabaItApAddressSetAPIResponseModel
}
AlibabaItApAddressSetAPIResponse

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

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

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 成功返回结果

type AlibabaItApAddressSetResult

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

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"`
	// 空间单元id
	ApUnitId int64 `json:"ap_unit_id,omitempty" xml:"ap_unit_id,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"`
}

ApAddressInfo 结构体

Jump to

Keyboard shortcuts

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