-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoOmniorderStoreCollectconfigGetAPIRequest.go
69 lines (58 loc) · 1.93 KB
/
TaobaoOmniorderStoreCollectconfigGetAPIRequest.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
package omniorder
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoOmniorderStoreCollectconfigGetAPIRequest 查询门店自提配置内容 API请求
// taobao.omniorder.store.collectconfig.get
//
// 查询门店自提配置内容
type TaobaoOmniorderStoreCollectconfigGetAPIRequest struct {
model.Params
// 门店ID
_storeId int64
// 是否是活动期
_activity bool
}
// NewTaobaoOmniorderStoreCollectconfigGetRequest 初始化TaobaoOmniorderStoreCollectconfigGetAPIRequest对象
func NewTaobaoOmniorderStoreCollectconfigGetRequest() *TaobaoOmniorderStoreCollectconfigGetAPIRequest {
return &TaobaoOmniorderStoreCollectconfigGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetApiMethodName() string {
return "taobao.omniorder.store.collectconfig.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetStoreId is StoreId Setter
// 门店ID
func (r *TaobaoOmniorderStoreCollectconfigGetAPIRequest) SetStoreId(_storeId int64) error {
r._storeId = _storeId
r.Set("store_id", _storeId)
return nil
}
// GetStoreId StoreId Getter
func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetStoreId() int64 {
return r._storeId
}
// SetActivity is Activity Setter
// 是否是活动期
func (r *TaobaoOmniorderStoreCollectconfigGetAPIRequest) SetActivity(_activity bool) error {
r._activity = _activity
r.Set("activity", _activity)
return nil
}
// GetActivity Activity Getter
func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetActivity() bool {
return r._activity
}