-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoOpenAccountIndexFindAPIRequest.go
69 lines (58 loc) · 2.2 KB
/
TaobaoOpenAccountIndexFindAPIRequest.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"
)
// TaobaoOpenAccountIndexFindAPIRequest Open Account索引查询 API请求
// taobao.open.account.index.find
//
// Open Account索引查询
type TaobaoOpenAccountIndexFindAPIRequest struct {
model.Params
// 具体值,当索引类型是 OPEN_ID 是,格式为 oauthPlatform|openId,即使用竖线分隔的组合值
_indexValue string
// int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID = 5;
_indexType int64
}
// NewTaobaoOpenAccountIndexFindRequest 初始化TaobaoOpenAccountIndexFindAPIRequest对象
func NewTaobaoOpenAccountIndexFindRequest() *TaobaoOpenAccountIndexFindAPIRequest {
return &TaobaoOpenAccountIndexFindAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoOpenAccountIndexFindAPIRequest) GetApiMethodName() string {
return "taobao.open.account.index.find"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoOpenAccountIndexFindAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoOpenAccountIndexFindAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetIndexValue is IndexValue Setter
// 具体值,当索引类型是 OPEN_ID 是,格式为 oauthPlatform|openId,即使用竖线分隔的组合值
func (r *TaobaoOpenAccountIndexFindAPIRequest) SetIndexValue(_indexValue string) error {
r._indexValue = _indexValue
r.Set("index_value", _indexValue)
return nil
}
// GetIndexValue IndexValue Getter
func (r TaobaoOpenAccountIndexFindAPIRequest) GetIndexValue() string {
return r._indexValue
}
// SetIndexType is IndexType Setter
// int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID = 5;
func (r *TaobaoOpenAccountIndexFindAPIRequest) SetIndexType(_indexType int64) error {
r._indexType = _indexType
r.Set("index_type", _indexType)
return nil
}
// GetIndexType IndexType Getter
func (r TaobaoOpenAccountIndexFindAPIRequest) GetIndexType() int64 {
return r._indexType
}