-
Notifications
You must be signed in to change notification settings - Fork 165
/
share.go
36 lines (31 loc) · 1.2 KB
/
share.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
package request
import "encoding/xml"
type RequestShare struct {
AppID string `json:"appid,omitempty"`
TransactionID string `json:"transaction_id,omitempty"` // OutTradeNo 和 TransactionID 二选一
OutOrderNO string `json:"out_order_no,omitempty"`
Receivers []*Receiver `json:"receivers,omitempty"`
UnfreezeUnSplit bool `json:"unfreeze_unsplit,omitempty"`
}
type Receiver struct {
Type string `json:"type"`
Account string `json:"account"`
Name string `json:"name,omitempty"`
Amount int64 `json:"amount,omitempty"`
Description string `json:"description,omitempty"`
}
type RequestShareReturn struct {
XMLName xml.Name `xml:"xml"`
Text string `xml:",chardata"`
AppID string `xml:"appid"`
MchID string `xml:"mch_id"`
//NonceStr string `xml:"nonce_str"`
//SignType string `xml:"sign_type"`
//Sign string `xml:"sign"`
OutOrderNo string `xml:"out_order_no"`
OutReturnNo string `xml:"out_return_no"`
ReturnAccountType string `xml:"return_account_type"`
ReturnAccount string `xml:"return_account"`
ReturnAmount string `xml:"return_amount"`
Description string `xml:"description"`
}