-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoOpenAccountDeleteAPIRequest.go
69 lines (58 loc) · 1.92 KB
/
TaobaoOpenAccountDeleteAPIRequest.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 user
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoopenaccountdeleteAPIRequest OpenAccount删除数据 API请求
// taobao.open.account.delete
//
// OpenAccount删除数据
type TaobaoopenaccountdeleteAPIRequest struct {
model.Params
// Open Account的id列表
_openAccountIds []int64
// ISV自己账号的id列表
_isvAccountIds []string
}
// NewTaobaoopenaccountdeleteRequest 初始化TaobaoopenaccountdeleteAPIRequest对象
func NewTaobaoopenaccountdeleteRequest() *TaobaoopenaccountdeleteAPIRequest {
return &TaobaoopenaccountdeleteAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoopenaccountdeleteAPIRequest) GetApiMethodName() string {
return "taobao.open.account.delete"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoopenaccountdeleteAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoopenaccountdeleteAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetOpenAccountIds is OpenAccountIds Setter
// Open Account的id列表
func (r *TaobaoopenaccountdeleteAPIRequest) SetOpenAccountIds(_openAccountIds []int64) error {
r._openAccountIds = _openAccountIds
r.Set("open_account_ids", _openAccountIds)
return nil
}
// GetOpenAccountIds OpenAccountIds Getter
func (r TaobaoopenaccountdeleteAPIRequest) GetOpenAccountIds() []int64 {
return r._openAccountIds
}
// SetIsvAccountIds is IsvAccountIds Setter
// ISV自己账号的id列表
func (r *TaobaoopenaccountdeleteAPIRequest) SetIsvAccountIds(_isvAccountIds []string) error {
r._isvAccountIds = _isvAccountIds
r.Set("isv_account_ids", _isvAccountIds)
return nil
}
// GetIsvAccountIds IsvAccountIds Getter
func (r TaobaoopenaccountdeleteAPIRequest) GetIsvAccountIds() []string {
return r._isvAccountIds
}