-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlihealthAlipaypfmOrderSyncAPIRequest.go
142 lines (121 loc) · 4.08 KB
/
AlibabaAlihealthAlipaypfmOrderSyncAPIRequest.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
package alihealthcrm
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthAlipaypfmOrderSyncAPIRequest 订单数据回传接口 API请求
// alibaba.alihealth.alipaypfm.order.sync
//
// 订单数据回传接口,各个isv通过我们渠道产生订单需要回传进行统计
type AlibabaAlihealthAlipaypfmOrderSyncAPIRequest struct {
model.Params
// 订单id
_orderId string
// 订单价格
_orderPrice string
// 订单状态
_orderStatus string
// 扩展参数
_extParam string
// user_id
_userId int64
}
// NewAlibabaAlihealthAlipaypfmOrderSyncRequest 初始化AlibabaAlihealthAlipaypfmOrderSyncAPIRequest对象
func NewAlibabaAlihealthAlipaypfmOrderSyncRequest() *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest {
return &AlibabaAlihealthAlipaypfmOrderSyncAPIRequest{
Params: model.NewParams(5),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) Reset() {
r._orderId = ""
r._orderPrice = ""
r._orderStatus = ""
r._extParam = ""
r._userId = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetApiMethodName() string {
return "alibaba.alihealth.alipaypfm.order.sync"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetOrderId is OrderId Setter
// 订单id
func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetOrderId(_orderId string) error {
r._orderId = _orderId
r.Set("order_id", _orderId)
return nil
}
// GetOrderId OrderId Getter
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetOrderId() string {
return r._orderId
}
// SetOrderPrice is OrderPrice Setter
// 订单价格
func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetOrderPrice(_orderPrice string) error {
r._orderPrice = _orderPrice
r.Set("order_price", _orderPrice)
return nil
}
// GetOrderPrice OrderPrice Getter
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetOrderPrice() string {
return r._orderPrice
}
// SetOrderStatus is OrderStatus Setter
// 订单状态
func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetOrderStatus(_orderStatus string) error {
r._orderStatus = _orderStatus
r.Set("order_status", _orderStatus)
return nil
}
// GetOrderStatus OrderStatus Getter
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetOrderStatus() string {
return r._orderStatus
}
// SetExtParam is ExtParam Setter
// 扩展参数
func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetExtParam(_extParam string) error {
r._extParam = _extParam
r.Set("ext_param", _extParam)
return nil
}
// GetExtParam ExtParam Getter
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetExtParam() string {
return r._extParam
}
// SetUserId is UserId Setter
// user_id
func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetUserId(_userId int64) error {
r._userId = _userId
r.Set("user_id", _userId)
return nil
}
// GetUserId UserId Getter
func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetUserId() int64 {
return r._userId
}
var poolAlibabaAlihealthAlipaypfmOrderSyncAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlihealthAlipaypfmOrderSyncRequest()
},
}
// GetAlibabaAlihealthAlipaypfmOrderSyncRequest 从 sync.Pool 获取 AlibabaAlihealthAlipaypfmOrderSyncAPIRequest
func GetAlibabaAlihealthAlipaypfmOrderSyncAPIRequest() *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest {
return poolAlibabaAlihealthAlipaypfmOrderSyncAPIRequest.Get().(*AlibabaAlihealthAlipaypfmOrderSyncAPIRequest)
}
// ReleaseAlibabaAlihealthAlipaypfmOrderSyncAPIRequest 将 AlibabaAlihealthAlipaypfmOrderSyncAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlihealthAlipaypfmOrderSyncAPIRequest(v *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) {
v.Reset()
poolAlibabaAlihealthAlipaypfmOrderSyncAPIRequest.Put(v)
}