-
Notifications
You must be signed in to change notification settings - Fork 9
/
SettleAdjustmentResponse.go
61 lines (56 loc) · 2.04 KB
/
SettleAdjustmentResponse.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
package tmallservice
import (
"sync"
)
// SettleAdjustmentResponse 结构体
type SettleAdjustmentResponse struct {
// comments
Comments string `json:"comments,omitempty" xml:"comments,omitempty"`
// description
Description string `json:"description,omitempty" xml:"description,omitempty"`
// gmtCreate
CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
// gmtModified
ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
// pictureUrls,多条已冒号分隔
PictureUrls string `json:"picture_urls,omitempty" xml:"picture_urls,omitempty"`
// priceFactors
PriceFactors string `json:"price_factors,omitempty" xml:"price_factors,omitempty"`
// cost,单位分
Cost int64 `json:"cost,omitempty" xml:"cost,omitempty"`
// id
Id int64 `json:"id,omitempty" xml:"id,omitempty"`
// serviceOrderId
ServiceOrderId int64 `json:"service_order_id,omitempty" xml:"service_order_id,omitempty"`
// 工单ID
WorkcardId int64 `json:"workcard_id,omitempty" xml:"workcard_id,omitempty"`
// 调整单状态 待商家确认:1, 商家已确认:2, 待小二判定:3, 小二判定有效:4, 小二判定无效:5, 小二无法判定:6, 服务商取消:7, 超时确认:8, 完成:9
Status int64 `json:"status,omitempty" xml:"status,omitempty"`
// 调整单类型
Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}
var poolSettleAdjustmentResponse = sync.Pool{
New: func() any {
return new(SettleAdjustmentResponse)
},
}
// GetSettleAdjustmentResponse() 从对象池中获取SettleAdjustmentResponse
func GetSettleAdjustmentResponse() *SettleAdjustmentResponse {
return poolSettleAdjustmentResponse.Get().(*SettleAdjustmentResponse)
}
// ReleaseSettleAdjustmentResponse 释放SettleAdjustmentResponse
func ReleaseSettleAdjustmentResponse(v *SettleAdjustmentResponse) {
v.Comments = ""
v.Description = ""
v.CreateTime = ""
v.ModifiedTime = ""
v.PictureUrls = ""
v.PriceFactors = ""
v.Cost = 0
v.Id = 0
v.ServiceOrderId = 0
v.WorkcardId = 0
v.Status = 0
v.Type = 0
poolSettleAdjustmentResponse.Put(v)
}