-
Notifications
You must be signed in to change notification settings - Fork 9
/
ReverseConsumePointOpenReq.go
67 lines (62 loc) · 2.29 KB
/
ReverseConsumePointOpenReq.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
package alsc
import (
"sync"
)
// ReverseConsumePointOpenReq 结构体
type ReverseConsumePointOpenReq struct {
// 业务场景
BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
// 品牌id
BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
// 顾客id
CustomerId string `json:"customer_id,omitempty" xml:"customer_id,omitempty"`
// 操作人id
OperatorId string `json:"operator_id,omitempty" xml:"operator_id,omitempty"`
// 操作人名
OperatorName string `json:"operator_name,omitempty" xml:"operator_name,omitempty"`
// 关联交易号/订单号
OutBizId string `json:"out_biz_id,omitempty" xml:"out_biz_id,omitempty"`
// 变更理由
Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
// 请求幂等UUID
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 反向操作的业务ID,如退单号
ReverseOrderId string `json:"reverse_order_id,omitempty" xml:"reverse_order_id,omitempty"`
// 门店id
ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
// 外部门店ID,shop_id和out_shop_id不可同时为空
OutShopId string `json:"out_shop_id,omitempty" xml:"out_shop_id,omitempty"`
// 外部品牌id,brandId与out_brand_id不可同时为空
OutBrandId string `json:"out_brand_id,omitempty" xml:"out_brand_id,omitempty"`
// 外部渠道,CS是辰森,客如云是KRY
BizChannel string `json:"biz_channel,omitempty" xml:"biz_channel,omitempty"`
// 变更积分数
ChangePoint int64 `json:"change_point,omitempty" xml:"change_point,omitempty"`
}
var poolReverseConsumePointOpenReq = sync.Pool{
New: func() any {
return new(ReverseConsumePointOpenReq)
},
}
// GetReverseConsumePointOpenReq() 从对象池中获取ReverseConsumePointOpenReq
func GetReverseConsumePointOpenReq() *ReverseConsumePointOpenReq {
return poolReverseConsumePointOpenReq.Get().(*ReverseConsumePointOpenReq)
}
// ReleaseReverseConsumePointOpenReq 释放ReverseConsumePointOpenReq
func ReleaseReverseConsumePointOpenReq(v *ReverseConsumePointOpenReq) {
v.BizType = ""
v.BrandId = ""
v.CustomerId = ""
v.OperatorId = ""
v.OperatorName = ""
v.OutBizId = ""
v.Reason = ""
v.RequestId = ""
v.ReverseOrderId = ""
v.ShopId = ""
v.OutShopId = ""
v.OutBrandId = ""
v.BizChannel = ""
v.ChangePoint = 0
poolReverseConsumePointOpenReq.Put(v)
}