-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaMydataSelfProductGetAPIRequest.go
81 lines (69 loc) · 2.25 KB
/
AlibabaMydataSelfProductGetAPIRequest.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
package mydata
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// AlibabaMydataSelfProductGetAPIRequest 获取客户产品相关表现数据 API请求
// alibaba.mydata.self.product.get
//
// 获取客户产品相关表现数据
type AlibabaMydataSelfProductGetAPIRequest struct {
model.Params
// 待查询产品id列表
_productIds []int64
// 统计周期,可以为"day", "week", "month"
_statisticsType string
// 统计日期
_statDate string
}
// NewAlibabaMydataSelfProductGetRequest 初始化AlibabaMydataSelfProductGetAPIRequest对象
func NewAlibabaMydataSelfProductGetRequest() *AlibabaMydataSelfProductGetAPIRequest {
return &AlibabaMydataSelfProductGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaMydataSelfProductGetAPIRequest) GetApiMethodName() string {
return "alibaba.mydata.self.product.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaMydataSelfProductGetAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetProductIds is ProductIds Setter
// 待查询产品id列表
func (r *AlibabaMydataSelfProductGetAPIRequest) SetProductIds(_productIds []int64) error {
r._productIds = _productIds
r.Set("product_ids", _productIds)
return nil
}
// GetProductIds ProductIds Getter
func (r AlibabaMydataSelfProductGetAPIRequest) GetProductIds() []int64 {
return r._productIds
}
// SetStatisticsType is StatisticsType Setter
// 统计周期,可以为"day", "week", "month"
func (r *AlibabaMydataSelfProductGetAPIRequest) SetStatisticsType(_statisticsType string) error {
r._statisticsType = _statisticsType
r.Set("statistics_type", _statisticsType)
return nil
}
// GetStatisticsType StatisticsType Getter
func (r AlibabaMydataSelfProductGetAPIRequest) GetStatisticsType() string {
return r._statisticsType
}
// SetStatDate is StatDate Setter
// 统计日期
func (r *AlibabaMydataSelfProductGetAPIRequest) SetStatDate(_statDate string) error {
r._statDate = _statDate
r.Set("stat_date", _statDate)
return nil
}
// GetStatDate StatDate Getter
func (r AlibabaMydataSelfProductGetAPIRequest) GetStatDate() string {
return r._statDate
}