-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest.go
69 lines (58 loc) · 2.15 KB
/
TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest.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"
)
// TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest 修改门店发货配置内容 API请求
// taobao.omniorder.store.deliverconfig.update
//
// 修改门店发货配置内容
type TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest struct {
model.Params
// 门店ID
_storeId int64
// 卖家发货配置
_storeDeliverConfig *StoreDeliverConfig
}
// NewTaobaoOmniorderStoreDeliverconfigUpdateRequest 初始化TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest对象
func NewTaobaoOmniorderStoreDeliverconfigUpdateRequest() *TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest {
return &TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetApiMethodName() string {
return "taobao.omniorder.store.deliverconfig.update"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetStoreId is StoreId Setter
// 门店ID
func (r *TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) SetStoreId(_storeId int64) error {
r._storeId = _storeId
r.Set("store_id", _storeId)
return nil
}
// GetStoreId StoreId Getter
func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetStoreId() int64 {
return r._storeId
}
// SetStoreDeliverConfig is StoreDeliverConfig Setter
// 卖家发货配置
func (r *TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) SetStoreDeliverConfig(_storeDeliverConfig *StoreDeliverConfig) error {
r._storeDeliverConfig = _storeDeliverConfig
r.Set("store_deliver_config", _storeDeliverConfig)
return nil
}
// GetStoreDeliverConfig StoreDeliverConfig Getter
func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetStoreDeliverConfig() *StoreDeliverConfig {
return r._storeDeliverConfig
}