-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoOmniorderStoreCollectconfigUpdateAPIRequest.go
69 lines (58 loc) · 2.14 KB
/
TaobaoOmniorderStoreCollectconfigUpdateAPIRequest.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"
)
// TaobaoOmniorderStoreCollectconfigUpdateAPIRequest 门店自提配置修改 API请求
// taobao.omniorder.store.collectconfig.update
//
// 修改门店自提配置内容
type TaobaoOmniorderStoreCollectconfigUpdateAPIRequest struct {
model.Params
// 门店ID
_storeId int64
// 门店自提配置
_storeCollectConfig *StoreCollectConfig
}
// NewTaobaoOmniorderStoreCollectconfigUpdateRequest 初始化TaobaoOmniorderStoreCollectconfigUpdateAPIRequest对象
func NewTaobaoOmniorderStoreCollectconfigUpdateRequest() *TaobaoOmniorderStoreCollectconfigUpdateAPIRequest {
return &TaobaoOmniorderStoreCollectconfigUpdateAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetApiMethodName() string {
return "taobao.omniorder.store.collectconfig.update"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetStoreId is StoreId Setter
// 门店ID
func (r *TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) SetStoreId(_storeId int64) error {
r._storeId = _storeId
r.Set("store_id", _storeId)
return nil
}
// GetStoreId StoreId Getter
func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetStoreId() int64 {
return r._storeId
}
// SetStoreCollectConfig is StoreCollectConfig Setter
// 门店自提配置
func (r *TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) SetStoreCollectConfig(_storeCollectConfig *StoreCollectConfig) error {
r._storeCollectConfig = _storeCollectConfig
r.Set("store_collect_config", _storeCollectConfig)
return nil
}
// GetStoreCollectConfig StoreCollectConfig Getter
func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetStoreCollectConfig() *StoreCollectConfig {
return r._storeCollectConfig
}