-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoKoubeiMallCommonMallNearListAPIRequest.go
171 lines (147 loc) · 5.26 KB
/
TaobaoKoubeiMallCommonMallNearListAPIRequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
package koubeimall
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoKoubeiMallCommonMallNearListAPIRequest 根据POI查询附近商圈列表信息 API请求
// taobao.koubei.mall.common.mall.near.list
//
// 通过用户/终端设备地理位置POI信息,查询附近商圈信息
type TaobaoKoubeiMallCommonMallNearListAPIRequest struct {
model.Params
// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP)
_displayChannel string
// 支付宝/口碑/淘宝app版本号
_appVersion string
// 终端设备描述(中、英文均可)
_terminalType string
// 纬度(终端设备地理位置)
_latitude string
// 经度(终端设备地理位置)
_longitude string
// 口碑城市编码(示例:杭州市330100)
_cityCode string
// 身份ID,识别合作方身份(可联系口碑综合体业务获取)
_dataSetId string
// 查询个数,最大查询量不能超过50个
_size int64
// 召回半径,单位m,最大数值不能超过10km(该字段为空,默认全城召回)
_radius int64
}
// NewTaobaoKoubeiMallCommonMallNearListRequest 初始化TaobaoKoubeiMallCommonMallNearListAPIRequest对象
func NewTaobaoKoubeiMallCommonMallNearListRequest() *TaobaoKoubeiMallCommonMallNearListAPIRequest {
return &TaobaoKoubeiMallCommonMallNearListAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetApiMethodName() string {
return "taobao.koubei.mall.common.mall.near.list"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetDisplayChannel is DisplayChannel Setter
// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetDisplayChannel(_displayChannel string) error {
r._displayChannel = _displayChannel
r.Set("display_channel", _displayChannel)
return nil
}
// GetDisplayChannel DisplayChannel Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetDisplayChannel() string {
return r._displayChannel
}
// SetAppVersion is AppVersion Setter
// 支付宝/口碑/淘宝app版本号
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetAppVersion(_appVersion string) error {
r._appVersion = _appVersion
r.Set("app_version", _appVersion)
return nil
}
// GetAppVersion AppVersion Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetAppVersion() string {
return r._appVersion
}
// SetTerminalType is TerminalType Setter
// 终端设备描述(中、英文均可)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetTerminalType(_terminalType string) error {
r._terminalType = _terminalType
r.Set("terminal_type", _terminalType)
return nil
}
// GetTerminalType TerminalType Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetTerminalType() string {
return r._terminalType
}
// SetLatitude is Latitude Setter
// 纬度(终端设备地理位置)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetLatitude(_latitude string) error {
r._latitude = _latitude
r.Set("latitude", _latitude)
return nil
}
// GetLatitude Latitude Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetLatitude() string {
return r._latitude
}
// SetLongitude is Longitude Setter
// 经度(终端设备地理位置)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetLongitude(_longitude string) error {
r._longitude = _longitude
r.Set("longitude", _longitude)
return nil
}
// GetLongitude Longitude Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetLongitude() string {
return r._longitude
}
// SetCityCode is CityCode Setter
// 口碑城市编码(示例:杭州市330100)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetCityCode(_cityCode string) error {
r._cityCode = _cityCode
r.Set("city_code", _cityCode)
return nil
}
// GetCityCode CityCode Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetCityCode() string {
return r._cityCode
}
// SetDataSetId is DataSetId Setter
// 身份ID,识别合作方身份(可联系口碑综合体业务获取)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetDataSetId(_dataSetId string) error {
r._dataSetId = _dataSetId
r.Set("data_set_id", _dataSetId)
return nil
}
// GetDataSetId DataSetId Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetDataSetId() string {
return r._dataSetId
}
// SetSize is Size Setter
// 查询个数,最大查询量不能超过50个
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetSize(_size int64) error {
r._size = _size
r.Set("size", _size)
return nil
}
// GetSize Size Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetSize() int64 {
return r._size
}
// SetRadius is Radius Setter
// 召回半径,单位m,最大数值不能超过10km(该字段为空,默认全城召回)
func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetRadius(_radius int64) error {
r._radius = _radius
r.Set("radius", _radius)
return nil
}
// GetRadius Radius Getter
func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetRadius() int64 {
return r._radius
}