-
Notifications
You must be signed in to change notification settings - Fork 149
/
requestBatch.go
30 lines (26 loc) · 1.18 KB
/
requestBatch.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
package request
import "github.com/ArtisanCloud/PowerLibs/v3/object"
type TransferDetail struct {
OutDetailNO string `json:"out_detail_no"`
TransferAmount int `json:"transfer_amount"`
TransferRemark string `json:"transfer_remark"`
OpenID string `json:"openid"`
UserName object.NullString `json:"user_name"`
}
type RequestTransferBatch struct {
AppID string `json:"appid"`
OutBatchNO string `json:"out_batch_no"`
BatchName string `json:"batch_name"`
BatchRemark string `json:"batch_remark"`
TotalAmount int `json:"total_amount"`
TotalNum int `json:"total_num"`
TransferDetailList []*TransferDetail `json:"transfer_detail_list"`
TransferSceneID string `json:"transfer_scene_id,omitempty"`
NotifyUrl string `json:"notify_url,omitempty"`
}
func (requestTransferBatch *RequestTransferBatch) SetNotifyUrl(url string) {
requestTransferBatch.NotifyUrl = url
}
func (requestTransferBatch *RequestTransferBatch) GetNotifyUrl() string {
return requestTransferBatch.NotifyUrl
}