-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaMydataSelfProductDateGetAPIRequest.go
52 lines (43 loc) · 1.56 KB
/
AlibabaMydataSelfProductDateGetAPIRequest.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
package mydata
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/* AlibabaMydataSelfProductDateGetAPIRequest
获取客户产品相关表现数据的可用时间范围 API请求
alibaba.mydata.self.product.date.get
获取客户产品相关表现数据的可用时间范围 */
type AlibabaMydataSelfProductDateGetAPIRequest struct {
model.Params
// 统计周期类型,可以为"day","week","month"
_statisticsType string
}
// NewAlibabaMydataSelfProductDateGetRequest 初始化AlibabaMydataSelfProductDateGetAPIRequest对象
func NewAlibabaMydataSelfProductDateGetRequest() *AlibabaMydataSelfProductDateGetAPIRequest {
return &AlibabaMydataSelfProductDateGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaMydataSelfProductDateGetAPIRequest) GetApiMethodName() string {
return "alibaba.mydata.self.product.date.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaMydataSelfProductDateGetAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// Set is StatisticsType Setter
// 统计周期类型,可以为"day","week","month"
func (r *AlibabaMydataSelfProductDateGetAPIRequest) SetStatisticsType(_statisticsType string) error {
r._statisticsType = _statisticsType
r.Set("statistics_type", _statisticsType)
return nil
}
// Get StatisticsType Getter
func (r AlibabaMydataSelfProductDateGetAPIRequest) GetStatisticsType() string {
return r._statisticsType
}