-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaMydataOverviewIndicatorBasicGetAPIRequest.go
66 lines (56 loc) · 1.95 KB
/
AlibabaMydataOverviewIndicatorBasicGetAPIRequest.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
package mydata
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// AlibabaMydataOverviewIndicatorBasicGetAPIRequest 我的效果-获取公司询盘流量行业表现 API请求
// alibaba.mydata.overview.indicator.basic.get
//
// 获取公司询盘流量行业表现
type AlibabaMydataOverviewIndicatorBasicGetAPIRequest struct {
model.Params
// 要查询的数据周期
_dateRange *DateRange
// 要查询的行业信息
_industry *Industry
}
// NewAlibabaMydataOverviewIndicatorBasicGetRequest 初始化AlibabaMydataOverviewIndicatorBasicGetAPIRequest对象
func NewAlibabaMydataOverviewIndicatorBasicGetRequest() *AlibabaMydataOverviewIndicatorBasicGetAPIRequest {
return &AlibabaMydataOverviewIndicatorBasicGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetApiMethodName() string {
return "alibaba.mydata.overview.indicator.basic.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetDateRange is DateRange Setter
// 要查询的数据周期
func (r *AlibabaMydataOverviewIndicatorBasicGetAPIRequest) SetDateRange(_dateRange *DateRange) error {
r._dateRange = _dateRange
r.Set("date_range", _dateRange)
return nil
}
// GetDateRange DateRange Getter
func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetDateRange() *DateRange {
return r._dateRange
}
// SetIndustry is Industry Setter
// 要查询的行业信息
func (r *AlibabaMydataOverviewIndicatorBasicGetAPIRequest) SetIndustry(_industry *Industry) error {
r._industry = _industry
r.Set("industry", _industry)
return nil
}
// GetIndustry Industry Getter
func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetIndustry() *Industry {
return r._industry
}