Documentation ¶
Overview ¶
Package newretail 包含新零售API相关结构体
Index ¶
- type AlibabaItApAddressGetAPIRequest
- func (r AlibabaItApAddressGetAPIRequest) GetApiMethodName() string
- func (r AlibabaItApAddressGetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaItApAddressGetAPIRequest) GetAppKeyInternal() string
- func (r AlibabaItApAddressGetAPIRequest) GetLanguage() string
- func (r AlibabaItApAddressGetAPIRequest) GetMac() string
- func (r AlibabaItApAddressGetAPIRequest) GetRawParams() model.Params
- func (r AlibabaItApAddressGetAPIRequest) GetSignature() string
- func (r AlibabaItApAddressGetAPIRequest) GetTimestampInternal() int64
- func (r *AlibabaItApAddressGetAPIRequest) SetAppKeyInternal(_appKeyInternal string) error
- func (r *AlibabaItApAddressGetAPIRequest) SetLanguage(_language string) error
- func (r *AlibabaItApAddressGetAPIRequest) SetMac(_mac string) error
- func (r *AlibabaItApAddressGetAPIRequest) SetSignature(_signature string) error
- func (r *AlibabaItApAddressGetAPIRequest) SetTimestampInternal(_timestampInternal int64) error
- type AlibabaItApAddressGetAPIResponse
- type AlibabaItApAddressGetAPIResponseModel
- type AlibabaItApAddressGetResult
- type AlibabaItApAddressSetAPIRequest
- func (r AlibabaItApAddressSetAPIRequest) GetApAreaName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApBuildingName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApCampusName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApCityName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApFloor() string
- func (r AlibabaItApAddressSetAPIRequest) GetApNationName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApProvinceName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApUnitName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApiMethodName() string
- func (r AlibabaItApAddressSetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaItApAddressSetAPIRequest) GetAppKeyInternal() string
- func (r AlibabaItApAddressSetAPIRequest) GetDirection() string
- func (r AlibabaItApAddressSetAPIRequest) GetLat() string
- func (r AlibabaItApAddressSetAPIRequest) GetLng() string
- func (r AlibabaItApAddressSetAPIRequest) GetMac() string
- func (r AlibabaItApAddressSetAPIRequest) GetRawParams() model.Params
- func (r AlibabaItApAddressSetAPIRequest) GetSignature() string
- func (r AlibabaItApAddressSetAPIRequest) GetTimestampInternal() int64
- func (r *AlibabaItApAddressSetAPIRequest) SetApAreaName(_apAreaName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApBuildingName(_apBuildingName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApCampusName(_apCampusName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApCityName(_apCityName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApFloor(_apFloor string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApNationName(_apNationName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApProvinceName(_apProvinceName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetApUnitName(_apUnitName string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetAppKeyInternal(_appKeyInternal string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetDirection(_direction string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetLat(_lat string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetLng(_lng string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetMac(_mac string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetSignature(_signature string) error
- func (r *AlibabaItApAddressSetAPIRequest) SetTimestampInternal(_timestampInternal int64) error
- type AlibabaItApAddressSetAPIResponse
- type AlibabaItApAddressSetAPIResponseModel
- type AlibabaItApAddressSetResult
- type ApAddressInfo
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(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
func (r AlibabaItApAddressGetAPIRequest) GetMac() string
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) 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
func (r *AlibabaItApAddressGetAPIRequest) SetMac(_mac string) error
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的结构化位置信息
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 { // 返回的错误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 结构体
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
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
func (r AlibabaItApAddressSetAPIRequest) GetLat() string
GetLat Lat Getter
func (AlibabaItApAddressSetAPIRequest) GetLng ¶ added in v1.2.0
func (r AlibabaItApAddressSetAPIRequest) GetLng() string
GetLng Lng Getter
func (AlibabaItApAddressSetAPIRequest) GetMac ¶ added in v1.2.0
func (r AlibabaItApAddressSetAPIRequest) GetMac() string
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) 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
func (r *AlibabaItApAddressSetAPIRequest) SetLat(_lat string) error
SetLat is Lat Setter 纬度
func (*AlibabaItApAddressSetAPIRequest) SetLng ¶ added in v1.2.0
func (r *AlibabaItApAddressSetAPIRequest) SetLng(_lng string) error
SetLng is Lng Setter 经度
func (*AlibabaItApAddressSetAPIRequest) SetMac ¶ added in v1.2.0
func (r *AlibabaItApAddressSetAPIRequest) SetMac(_mac string) error
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位置信息维护的功能
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"` // 返回的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 结构体
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 结构体