-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoLarkPosItemprodFindterminalAPIRequest.go
158 lines (135 loc) · 4.49 KB
/
TaobaoLarkPosItemprodFindterminalAPIRequest.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
157
158
package user
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoLarkPosItemprodFindterminalAPIRequest 终端配置支持 API请求
// taobao.lark.pos.itemprod.findterminal
//
// 终端配置支持,读取如果不存在则创建和远程的连接配置并返回
type TaobaoLarkPosItemprodFindterminalAPIRequest struct {
model.Params
// 终端id
_deviceId string
// 终端类型
_deviceType string
// 912874323429834
_createUser string
// 租户编码
_leaseCode string
// 影城id
_cinemaId string
// 影城名称
_cinemaName string
}
// NewTaobaoLarkPosItemprodFindterminalRequest 初始化TaobaoLarkPosItemprodFindterminalAPIRequest对象
func NewTaobaoLarkPosItemprodFindterminalRequest() *TaobaoLarkPosItemprodFindterminalAPIRequest {
return &TaobaoLarkPosItemprodFindterminalAPIRequest{
Params: model.NewParams(6),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) Reset() {
r._deviceId = ""
r._deviceType = ""
r._createUser = ""
r._leaseCode = ""
r._cinemaId = ""
r._cinemaName = ""
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetApiMethodName() string {
return "taobao.lark.pos.itemprod.findterminal"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetDeviceId is DeviceId Setter
// 终端id
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetDeviceId(_deviceId string) error {
r._deviceId = _deviceId
r.Set("device_id", _deviceId)
return nil
}
// GetDeviceId DeviceId Getter
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetDeviceId() string {
return r._deviceId
}
// SetDeviceType is DeviceType Setter
// 终端类型
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetDeviceType(_deviceType string) error {
r._deviceType = _deviceType
r.Set("device_type", _deviceType)
return nil
}
// GetDeviceType DeviceType Getter
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetDeviceType() string {
return r._deviceType
}
// SetCreateUser is CreateUser Setter
// 912874323429834
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetCreateUser(_createUser string) error {
r._createUser = _createUser
r.Set("create_user", _createUser)
return nil
}
// GetCreateUser CreateUser Getter
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetCreateUser() string {
return r._createUser
}
// SetLeaseCode is LeaseCode Setter
// 租户编码
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetLeaseCode(_leaseCode string) error {
r._leaseCode = _leaseCode
r.Set("lease_code", _leaseCode)
return nil
}
// GetLeaseCode LeaseCode Getter
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetLeaseCode() string {
return r._leaseCode
}
// SetCinemaId is CinemaId Setter
// 影城id
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetCinemaId(_cinemaId string) error {
r._cinemaId = _cinemaId
r.Set("cinema_id", _cinemaId)
return nil
}
// GetCinemaId CinemaId Getter
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetCinemaId() string {
return r._cinemaId
}
// SetCinemaName is CinemaName Setter
// 影城名称
func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetCinemaName(_cinemaName string) error {
r._cinemaName = _cinemaName
r.Set("cinema_name", _cinemaName)
return nil
}
// GetCinemaName CinemaName Getter
func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetCinemaName() string {
return r._cinemaName
}
var poolTaobaoLarkPosItemprodFindterminalAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoLarkPosItemprodFindterminalRequest()
},
}
// GetTaobaoLarkPosItemprodFindterminalRequest 从 sync.Pool 获取 TaobaoLarkPosItemprodFindterminalAPIRequest
func GetTaobaoLarkPosItemprodFindterminalAPIRequest() *TaobaoLarkPosItemprodFindterminalAPIRequest {
return poolTaobaoLarkPosItemprodFindterminalAPIRequest.Get().(*TaobaoLarkPosItemprodFindterminalAPIRequest)
}
// ReleaseTaobaoLarkPosItemprodFindterminalAPIRequest 将 TaobaoLarkPosItemprodFindterminalAPIRequest 放入 sync.Pool
func ReleaseTaobaoLarkPosItemprodFindterminalAPIRequest(v *TaobaoLarkPosItemprodFindterminalAPIRequest) {
v.Reset()
poolTaobaoLarkPosItemprodFindterminalAPIRequest.Put(v)
}