-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoXhotelItemSelectionSellerStatExposureAPIRequest.go
114 lines (97 loc) · 3.09 KB
/
TaobaoXhotelItemSelectionSellerStatExposureAPIRequest.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
package xhotelitem
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoXhotelItemSelectionSellerStatExposureAPIRequest 选品曝光趋势 API请求
// taobao.xhotel.item.selection.seller.stat.exposure
//
// 用于提供给商家获取选品曝光趋势
type TaobaoXhotelItemSelectionSellerStatExposureAPIRequest struct {
model.Params
// 日期 默认为昨天
_date string
// hid 默认为all
_hid string
// 默认为all
_vendor string
// 默认为all
_supplier string
// 酒店编码
_outHid string
}
// NewTaobaoXhotelItemSelectionSellerStatExposureRequest 初始化TaobaoXhotelItemSelectionSellerStatExposureAPIRequest对象
func NewTaobaoXhotelItemSelectionSellerStatExposureRequest() *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest {
return &TaobaoXhotelItemSelectionSellerStatExposureAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetApiMethodName() string {
return "taobao.xhotel.item.selection.seller.stat.exposure"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetDate is Date Setter
// 日期 默认为昨天
func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetDate(_date string) error {
r._date = _date
r.Set("date", _date)
return nil
}
// GetDate Date Getter
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetDate() string {
return r._date
}
// SetHid is Hid Setter
// hid 默认为all
func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetHid(_hid string) error {
r._hid = _hid
r.Set("hid", _hid)
return nil
}
// GetHid Hid Getter
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetHid() string {
return r._hid
}
// SetVendor is Vendor Setter
// 默认为all
func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetVendor(_vendor string) error {
r._vendor = _vendor
r.Set("vendor", _vendor)
return nil
}
// GetVendor Vendor Getter
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetVendor() string {
return r._vendor
}
// SetSupplier is Supplier Setter
// 默认为all
func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetSupplier(_supplier string) error {
r._supplier = _supplier
r.Set("supplier", _supplier)
return nil
}
// GetSupplier Supplier Getter
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetSupplier() string {
return r._supplier
}
// SetOutHid is OutHid Setter
// 酒店编码
func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetOutHid(_outHid string) error {
r._outHid = _outHid
r.Set("out_hid", _outHid)
return nil
}
// GetOutHid OutHid Getter
func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetOutHid() string {
return r._outHid
}