-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest.go
171 lines (147 loc) · 5.17 KB
/
TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest.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"
)
// TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest 查询综合体内的门店详细信息 API请求
// taobao.koubei.mall.common.store.detail.query
//
// 查询口碑综合体内的门店详情信息
type TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest struct {
model.Params
// 商圈ID
_mallId string
// 商圈内的门店ID
_storeId string
// 身份ID,识别合作方身份(可联系口碑综合体业务获取)
_dataSetId string
// 口碑城市编码(示例:杭州市330100)
_cityCode string
// 经度(终端设备地理位置)
_longitude string
// 纬度(终端设备地理位置)
_latitude string
// 终端设备描述(中、英文均可)
_terminalType string
// 支付宝/口碑/淘宝app版本号
_appVersion string
// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP)
_displayChannel string
}
// NewTaobaoKoubeiMallCommonStoreDetailQueryRequest 初始化TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest对象
func NewTaobaoKoubeiMallCommonStoreDetailQueryRequest() *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest {
return &TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetApiMethodName() string {
return "taobao.koubei.mall.common.store.detail.query"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetMallId is MallId Setter
// 商圈ID
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetMallId(_mallId string) error {
r._mallId = _mallId
r.Set("mall_id", _mallId)
return nil
}
// GetMallId MallId Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetMallId() string {
return r._mallId
}
// SetStoreId is StoreId Setter
// 商圈内的门店ID
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetStoreId(_storeId string) error {
r._storeId = _storeId
r.Set("store_id", _storeId)
return nil
}
// GetStoreId StoreId Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetStoreId() string {
return r._storeId
}
// SetDataSetId is DataSetId Setter
// 身份ID,识别合作方身份(可联系口碑综合体业务获取)
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetDataSetId(_dataSetId string) error {
r._dataSetId = _dataSetId
r.Set("data_set_id", _dataSetId)
return nil
}
// GetDataSetId DataSetId Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetDataSetId() string {
return r._dataSetId
}
// SetCityCode is CityCode Setter
// 口碑城市编码(示例:杭州市330100)
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetCityCode(_cityCode string) error {
r._cityCode = _cityCode
r.Set("city_code", _cityCode)
return nil
}
// GetCityCode CityCode Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetCityCode() string {
return r._cityCode
}
// SetLongitude is Longitude Setter
// 经度(终端设备地理位置)
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetLongitude(_longitude string) error {
r._longitude = _longitude
r.Set("longitude", _longitude)
return nil
}
// GetLongitude Longitude Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetLongitude() string {
return r._longitude
}
// SetLatitude is Latitude Setter
// 纬度(终端设备地理位置)
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetLatitude(_latitude string) error {
r._latitude = _latitude
r.Set("latitude", _latitude)
return nil
}
// GetLatitude Latitude Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetLatitude() string {
return r._latitude
}
// SetTerminalType is TerminalType Setter
// 终端设备描述(中、英文均可)
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetTerminalType(_terminalType string) error {
r._terminalType = _terminalType
r.Set("terminal_type", _terminalType)
return nil
}
// GetTerminalType TerminalType Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetTerminalType() string {
return r._terminalType
}
// SetAppVersion is AppVersion Setter
// 支付宝/口碑/淘宝app版本号
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetAppVersion(_appVersion string) error {
r._appVersion = _appVersion
r.Set("app_version", _appVersion)
return nil
}
// GetAppVersion AppVersion Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetAppVersion() string {
return r._appVersion
}
// SetDisplayChannel is DisplayChannel Setter
// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP)
func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetDisplayChannel(_displayChannel string) error {
r._displayChannel = _displayChannel
r.Set("display_channel", _displayChannel)
return nil
}
// GetDisplayChannel DisplayChannel Getter
func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetDisplayChannel() string {
return r._displayChannel
}