-
Notifications
You must be signed in to change notification settings - Fork 9
/
ServiceContractDo.go
196 lines (191 loc) · 6.89 KB
/
ServiceContractDo.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
package tmallservice
import (
"sync"
)
// ServiceContractDo 结构体
type ServiceContractDo struct {
// 服务电话
ServicePhone string `json:"service_phone,omitempty" xml:"service_phone,omitempty"`
// 服务名称
ServiceName string `json:"service_name,omitempty" xml:"service_name,omitempty"`
// 买家手机
BuyerMobile string `json:"buyer_mobile,omitempty" xml:"buyer_mobile,omitempty"`
// 买家地址
BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"`
// 卖家nick
SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
// 服务反馈信息
TpFeedbackInfo string `json:"tp_feedback_info,omitempty" xml:"tp_feedback_info,omitempty"`
// 商品序列号
AuctionSerialNum string `json:"auction_serial_num,omitempty" xml:"auction_serial_num,omitempty"`
// 卖家电话
SellerPhone string `json:"seller_phone,omitempty" xml:"seller_phone,omitempty"`
// 收货日期
ReceiveTime string `json:"receive_time,omitempty" xml:"receive_time,omitempty"`
// 付款时间
PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
// 合同内容
Content string `json:"content,omitempty" xml:"content,omitempty"`
// 生效时间
EffectDate string `json:"effect_date,omitempty" xml:"effect_date,omitempty"`
// 创建时间
GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
// 类目
Category string `json:"category,omitempty" xml:"category,omitempty"`
// 供应商名称
TpName string `json:"tp_name,omitempty" xml:"tp_name,omitempty"`
// 服务取消备注
CancelMemo string `json:"cancel_memo,omitempty" xml:"cancel_memo,omitempty"`
// 电子合同url
ContractUrl string `json:"contract_url,omitempty" xml:"contract_url,omitempty"`
// 服务取消人
Canceler string `json:"canceler,omitempty" xml:"canceler,omitempty"`
// 服务产品
ServiceProduct string `json:"service_product,omitempty" xml:"service_product,omitempty"`
// 失效时间
ExpireDate string `json:"expire_date,omitempty" xml:"expire_date,omitempty"`
// 备注
Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
// 属性
Attribute string `json:"attribute,omitempty" xml:"attribute,omitempty"`
// 买家邮编
BuyerZipCode string `json:"buyer_zip_code,omitempty" xml:"buyer_zip_code,omitempty"`
// 买家电话
BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"`
// 修改时间
GmtModify string `json:"gmt_modify,omitempty" xml:"gmt_modify,omitempty"`
// 合同名称
Name string `json:"name,omitempty" xml:"name,omitempty"`
// 商品名称
AuctionName string `json:"auction_name,omitempty" xml:"auction_name,omitempty"`
// 买家姓名
BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"`
// 买家有限
BuyerMail string `json:"buyer_mail,omitempty" xml:"buyer_mail,omitempty"`
// 合同描述
ContractMemo string `json:"contract_memo,omitempty" xml:"contract_memo,omitempty"`
// 店铺名称
ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
// 型号
ModelNumber string `json:"model_number,omitempty" xml:"model_number,omitempty"`
// 卖家手机
SellerMobile string `json:"seller_mobile,omitempty" xml:"seller_mobile,omitempty"`
// 品牌
Brand string `json:"brand,omitempty" xml:"brand,omitempty"`
// 服务取消日期
CancelDate string `json:"cancel_date,omitempty" xml:"cancel_date,omitempty"`
// 合同状态
ContractStatus int64 `json:"contract_status,omitempty" xml:"contract_status,omitempty"`
// 服务次数
ServiceCount int64 `json:"service_count,omitempty" xml:"service_count,omitempty"`
// 购买数量
BuyAmount int64 `json:"buy_amount,omitempty" xml:"buy_amount,omitempty"`
// 商品价格
ContractPrice int64 `json:"contract_price,omitempty" xml:"contract_price,omitempty"`
// 商品价格
AuctionPrice int64 `json:"auction_price,omitempty" xml:"auction_price,omitempty"`
// 合同类型
ContractType int64 `json:"contract_type,omitempty" xml:"contract_type,omitempty"`
// 扩展价格
ExtPrice int64 `json:"ext_price,omitempty" xml:"ext_price,omitempty"`
// 付款时间
PayTimeNumber int64 `json:"pay_time_number,omitempty" xml:"pay_time_number,omitempty"`
// 异常标识
Flag int64 `json:"flag,omitempty" xml:"flag,omitempty"`
// 商品编号
AuctionId int64 `json:"auction_id,omitempty" xml:"auction_id,omitempty"`
// 卖家id
SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
// 电子合同编号
ContractNo int64 `json:"contract_no,omitempty" xml:"contract_no,omitempty"`
// 订购关系id
OrderRelationId int64 `json:"order_relation_id,omitempty" xml:"order_relation_id,omitempty"`
// 收货日期
ReceiveTimeNumber int64 `json:"receive_time_number,omitempty" xml:"receive_time_number,omitempty"`
// 合同id
Id int64 `json:"id,omitempty" xml:"id,omitempty"`
// 生效时间
EffectDateNumber int64 `json:"effect_date_number,omitempty" xml:"effect_date_number,omitempty"`
// 失效时间
ExpireDateNumber int64 `json:"expire_date_number,omitempty" xml:"expire_date_number,omitempty"`
// 有效期
LifeCycle int64 `json:"life_cycle,omitempty" xml:"life_cycle,omitempty"`
// 主交易订单编号
ParentBizOrderId int64 `json:"parent_biz_order_id,omitempty" xml:"parent_biz_order_id,omitempty"`
// 交易订单编号
BizOrderId int64 `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
// 服务订单编号
ServiceOrderId int64 `json:"service_order_id,omitempty" xml:"service_order_id,omitempty"`
// 服务商编号
TpId int64 `json:"tp_id,omitempty" xml:"tp_id,omitempty"`
}
var poolServiceContractDo = sync.Pool{
New: func() any {
return new(ServiceContractDo)
},
}
// GetServiceContractDo() 从对象池中获取ServiceContractDo
func GetServiceContractDo() *ServiceContractDo {
return poolServiceContractDo.Get().(*ServiceContractDo)
}
// ReleaseServiceContractDo 释放ServiceContractDo
func ReleaseServiceContractDo(v *ServiceContractDo) {
v.ServicePhone = ""
v.ServiceName = ""
v.BuyerMobile = ""
v.BuyerAddress = ""
v.SellerNick = ""
v.TpFeedbackInfo = ""
v.AuctionSerialNum = ""
v.SellerPhone = ""
v.ReceiveTime = ""
v.PayTime = ""
v.Content = ""
v.EffectDate = ""
v.GmtCreate = ""
v.Category = ""
v.TpName = ""
v.CancelMemo = ""
v.ContractUrl = ""
v.Canceler = ""
v.ServiceProduct = ""
v.ExpireDate = ""
v.Memo = ""
v.Attribute = ""
v.BuyerZipCode = ""
v.BuyerPhone = ""
v.GmtModify = ""
v.Name = ""
v.AuctionName = ""
v.BuyerName = ""
v.BuyerMail = ""
v.ContractMemo = ""
v.ShopName = ""
v.ModelNumber = ""
v.SellerMobile = ""
v.Brand = ""
v.CancelDate = ""
v.ContractStatus = 0
v.ServiceCount = 0
v.BuyAmount = 0
v.ContractPrice = 0
v.AuctionPrice = 0
v.ContractType = 0
v.ExtPrice = 0
v.PayTimeNumber = 0
v.Flag = 0
v.AuctionId = 0
v.SellerId = 0
v.ContractNo = 0
v.OrderRelationId = 0
v.ReceiveTimeNumber = 0
v.Id = 0
v.EffectDateNumber = 0
v.ExpireDateNumber = 0
v.LifeCycle = 0
v.ParentBizOrderId = 0
v.BizOrderId = 0
v.ServiceOrderId = 0
v.TpId = 0
poolServiceContractDo.Put(v)
}