-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAilabAicloudTopMemoNoteListAPIRequest.go
111 lines (95 loc) · 2.85 KB
/
TaobaoAilabAicloudTopMemoNoteListAPIRequest.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoAilabAicloudTopMemoNoteListAPIRequest 查询天猫精灵用户设置的所有备忘录 API请求
// taobao.ailab.aicloud.top.memo.note.list
//
// 查询天猫精灵用户设置的所有备忘录
type TaobaoAilabAicloudTopMemoNoteListAPIRequest struct {
model.Params
// schema
_schema string
// 企业用户ID
_userId string
// 手持设备ID
_utdId string
// 扩展信息json段,用于存放APP类型,APP版本等等信息。
_ext string
// 备忘录ID
_memoId int64
}
// NewTaobaoAilabAicloudTopMemoNoteListRequest 初始化TaobaoAilabAicloudTopMemoNoteListAPIRequest对象
func NewTaobaoAilabAicloudTopMemoNoteListRequest() *TaobaoAilabAicloudTopMemoNoteListAPIRequest {
return &TaobaoAilabAicloudTopMemoNoteListAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetApiMethodName() string {
return "taobao.ailab.aicloud.top.memo.note.list"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetSchema is Schema Setter
// schema
func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetSchema(_schema string) error {
r._schema = _schema
r.Set("schema", _schema)
return nil
}
// GetSchema Schema Getter
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetSchema() string {
return r._schema
}
// SetUserId is UserId Setter
// 企业用户ID
func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetUserId(_userId string) error {
r._userId = _userId
r.Set("user_id", _userId)
return nil
}
// GetUserId UserId Getter
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetUserId() string {
return r._userId
}
// SetUtdId is UtdId Setter
// 手持设备ID
func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetUtdId(_utdId string) error {
r._utdId = _utdId
r.Set("utd_id", _utdId)
return nil
}
// GetUtdId UtdId Getter
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetUtdId() string {
return r._utdId
}
// SetExt is Ext Setter
// 扩展信息json段,用于存放APP类型,APP版本等等信息。
func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetExt(_ext string) error {
r._ext = _ext
r.Set("ext", _ext)
return nil
}
// GetExt Ext Getter
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetExt() string {
return r._ext
}
// SetMemoId is MemoId Setter
// 备忘录ID
func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetMemoId(_memoId int64) error {
r._memoId = _memoId
r.Set("memo_id", _memoId)
return nil
}
// GetMemoId MemoId Getter
func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetMemoId() int64 {
return r._memoId
}