-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAilabAicloudTopSkilsListAPIRequest.go
156 lines (134 loc) · 4.23 KB
/
TaobaoAilabAicloudTopSkilsListAPIRequest.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoAilabAicloudTopSkilsListAPIRequest 获取硬件平台设备下挂载的技能列表 API请求
// taobao.ailab.aicloud.top.skils.list
//
// 提供给在硬件平台接入设备的技能列表
type TaobaoAilabAicloudTopSkilsListAPIRequest struct {
model.Params
// 账户体系隔离
_schema string
// 用户ID,此处传入第三方账户体系的用户id
_userId string
// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数
_utdId string
// 扩展信息,用于存放APP类型等
_ext string
// query(模糊匹配skillName)
_query string
// type(1000代表内容技能,3000代表自定义技能,4000代表官方技能)
_type string
// pageNo
_pageNo int64
// pageSize
_pageSize int64
}
// NewTaobaoAilabAicloudTopSkilsListRequest 初始化TaobaoAilabAicloudTopSkilsListAPIRequest对象
func NewTaobaoAilabAicloudTopSkilsListRequest() *TaobaoAilabAicloudTopSkilsListAPIRequest {
return &TaobaoAilabAicloudTopSkilsListAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetApiMethodName() string {
return "taobao.ailab.aicloud.top.skils.list"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetSchema is Schema Setter
// 账户体系隔离
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetSchema(_schema string) error {
r._schema = _schema
r.Set("schema", _schema)
return nil
}
// GetSchema Schema Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetSchema() string {
return r._schema
}
// SetUserId is UserId Setter
// 用户ID,此处传入第三方账户体系的用户id
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetUserId(_userId string) error {
r._userId = _userId
r.Set("user_id", _userId)
return nil
}
// GetUserId UserId Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetUserId() string {
return r._userId
}
// SetUtdId is UtdId Setter
// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetUtdId(_utdId string) error {
r._utdId = _utdId
r.Set("utd_id", _utdId)
return nil
}
// GetUtdId UtdId Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetUtdId() string {
return r._utdId
}
// SetExt is Ext Setter
// 扩展信息,用于存放APP类型等
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetExt(_ext string) error {
r._ext = _ext
r.Set("ext", _ext)
return nil
}
// GetExt Ext Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetExt() string {
return r._ext
}
// SetQuery is Query Setter
// query(模糊匹配skillName)
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetQuery(_query string) error {
r._query = _query
r.Set("query", _query)
return nil
}
// GetQuery Query Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetQuery() string {
return r._query
}
// SetType is Type Setter
// type(1000代表内容技能,3000代表自定义技能,4000代表官方技能)
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetType(_type string) error {
r._type = _type
r.Set("type", _type)
return nil
}
// GetType Type Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetType() string {
return r._type
}
// SetPageNo is PageNo Setter
// pageNo
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetPageNo(_pageNo int64) error {
r._pageNo = _pageNo
r.Set("page_no", _pageNo)
return nil
}
// GetPageNo PageNo Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetPageNo() int64 {
return r._pageNo
}
// SetPageSize is PageSize Setter
// pageSize
func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetPageSize(_pageSize int64) error {
r._pageSize = _pageSize
r.Set("page_size", _pageSize)
return nil
}
// GetPageSize PageSize Getter
func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetPageSize() int64 {
return r._pageSize
}