-
Notifications
You must be signed in to change notification settings - Fork 9
/
RemoveTenantEmployeeAndAccountRequest.go
40 lines (35 loc) · 1.34 KB
/
RemoveTenantEmployeeAndAccountRequest.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
package mozi
import (
"sync"
)
// RemoveTenantEmployeeAndAccountRequest 结构体
type RemoveTenantEmployeeAndAccountRequest struct {
// 附加属性
RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
// 人员CODE
EmployeeCode string `json:"employee_code,omitempty" xml:"employee_code,omitempty"`
// 操作人
Operator string `json:"operator,omitempty" xml:"operator,omitempty"`
// 租户ID
TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
// 账号ID
AccountId int64 `json:"account_id,omitempty" xml:"account_id,omitempty"`
}
var poolRemoveTenantEmployeeAndAccountRequest = sync.Pool{
New: func() any {
return new(RemoveTenantEmployeeAndAccountRequest)
},
}
// GetRemoveTenantEmployeeAndAccountRequest() 从对象池中获取RemoveTenantEmployeeAndAccountRequest
func GetRemoveTenantEmployeeAndAccountRequest() *RemoveTenantEmployeeAndAccountRequest {
return poolRemoveTenantEmployeeAndAccountRequest.Get().(*RemoveTenantEmployeeAndAccountRequest)
}
// ReleaseRemoveTenantEmployeeAndAccountRequest 释放RemoveTenantEmployeeAndAccountRequest
func ReleaseRemoveTenantEmployeeAndAccountRequest(v *RemoveTenantEmployeeAndAccountRequest) {
v.RequestMetaData = ""
v.EmployeeCode = ""
v.Operator = ""
v.TenantId = 0
v.AccountId = 0
poolRemoveTenantEmployeeAndAccountRequest.Put(v)
}