-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest.go
126 lines (108 loc) · 3.4 KB
/
AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest.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
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest 弹内设备中心事件调用 API请求
// alibaba.ailabs.iot.device.mesh.event.invoke
//
// 弹内设备中心事件调用
type AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest struct {
model.Params
// 链接id
_traceId string
// 用户类型
_userType string
// 事件服务请求id
_serverEventRequestId string
// 音箱uuid
_uuid string
// 事件
_event *LivingGenericEventDto
// 用户
_userId int64
}
// NewAlibabaAilabsIotDeviceMeshEventInvokeRequest 初始化AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest对象
func NewAlibabaAilabsIotDeviceMeshEventInvokeRequest() *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest {
return &AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetApiMethodName() string {
return "alibaba.ailabs.iot.device.mesh.event.invoke"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetTraceId is TraceId Setter
// 链接id
func (r *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) SetTraceId(_traceId string) error {
r._traceId = _traceId
r.Set("trace_id", _traceId)
return nil
}
// GetTraceId TraceId Getter
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetTraceId() string {
return r._traceId
}
// SetUserType is UserType Setter
// 用户类型
func (r *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) SetUserType(_userType string) error {
r._userType = _userType
r.Set("user_type", _userType)
return nil
}
// GetUserType UserType Getter
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetUserType() string {
return r._userType
}
// SetServerEventRequestId is ServerEventRequestId Setter
// 事件服务请求id
func (r *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) SetServerEventRequestId(_serverEventRequestId string) error {
r._serverEventRequestId = _serverEventRequestId
r.Set("server_event_request_id", _serverEventRequestId)
return nil
}
// GetServerEventRequestId ServerEventRequestId Getter
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetServerEventRequestId() string {
return r._serverEventRequestId
}
// SetUuid is Uuid Setter
// 音箱uuid
func (r *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) SetUuid(_uuid string) error {
r._uuid = _uuid
r.Set("uuid", _uuid)
return nil
}
// GetUuid Uuid Getter
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetUuid() string {
return r._uuid
}
// SetEvent is Event Setter
// 事件
func (r *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) SetEvent(_event *LivingGenericEventDto) error {
r._event = _event
r.Set("event", _event)
return nil
}
// GetEvent Event Getter
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetEvent() *LivingGenericEventDto {
return r._event
}
// SetUserId is UserId Setter
// 用户
func (r *AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) SetUserId(_userId int64) error {
r._userId = _userId
r.Set("user_id", _userId)
return nil
}
// GetUserId UserId Getter
func (r AlibabaAilabsIotDeviceMeshEventInvokeAPIRequest) GetUserId() int64 {
return r._userId
}