-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAilabsIotDeviceListGetAPIRequest.go
66 lines (56 loc) · 1.75 KB
/
AlibabaAilabsIotDeviceListGetAPIRequest.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
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// AlibabaAilabsIotDeviceListGetAPIRequest 获取iot设备列表 API请求
// alibaba.ailabs.iot.device.list.get
//
// 通过此接口获取用户名下的iot设备列表
type AlibabaAilabsIotDeviceListGetAPIRequest struct {
model.Params
// 用户open id
_userOpenId string
// client id
_clientId string
}
// NewAlibabaAilabsIotDeviceListGetRequest 初始化AlibabaAilabsIotDeviceListGetAPIRequest对象
func NewAlibabaAilabsIotDeviceListGetRequest() *AlibabaAilabsIotDeviceListGetAPIRequest {
return &AlibabaAilabsIotDeviceListGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetApiMethodName() string {
return "alibaba.ailabs.iot.device.list.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetUserOpenId is UserOpenId Setter
// 用户open id
func (r *AlibabaAilabsIotDeviceListGetAPIRequest) SetUserOpenId(_userOpenId string) error {
r._userOpenId = _userOpenId
r.Set("user_open_id", _userOpenId)
return nil
}
// GetUserOpenId UserOpenId Getter
func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetUserOpenId() string {
return r._userOpenId
}
// SetClientId is ClientId Setter
// client id
func (r *AlibabaAilabsIotDeviceListGetAPIRequest) SetClientId(_clientId string) error {
r._clientId = _clientId
r.Set("client_id", _clientId)
return nil
}
// GetClientId ClientId Getter
func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetClientId() string {
return r._clientId
}