-
Notifications
You must be signed in to change notification settings - Fork 7
/
资金-获取提现记录.go
executable file
·57 lines (48 loc) · 1.42 KB
/
资金-获取提现记录.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
package apis
import (
"encoding/json"
)
// 获取提现记录
// 文档:https://developers.weixin.qq.com/doc/channels/API/funds/getwithdrawdetail.html
type ReqFundsGetwithdrawdetail struct {
WithdrawID string `json:"withdraw_id"`
}
var _ bodyer = ReqFundsGetwithdrawdetail{}
func (x ReqFundsGetwithdrawdetail) intoBody() ([]byte, error) {
result, err := json.Marshal(x)
if err != nil {
return nil, err
}
return result, nil
}
type RespFundsGetwithdrawdetail struct {
CommonResp
Amount int `json:"amount"`
BankMemo string `json:"bank_memo"`
BankName string `json:"bank_name"`
BankNum string `json:"bank_num"`
CreateTime int `json:"create_time"`
Reason string `json:"reason"`
Remark string `json:"remark"`
Status string `json:"status"`
UpdateTime int `json:"update_time"`
}
var _ bodyer = RespFundsGetwithdrawdetail{}
func (x RespFundsGetwithdrawdetail) intoBody() ([]byte, error) {
result, err := json.Marshal(x)
if err != nil {
return nil, err
}
return result, nil
}
func (c *ApiClient) ExecFundsGetwithdrawdetail(req ReqFundsGetwithdrawdetail) (RespFundsGetwithdrawdetail, error) {
var resp RespFundsGetwithdrawdetail
err := c.executeWXApiPost("/channels/ec/funds/getwithdrawdetail", req, &resp, true)
if err != nil {
return RespFundsGetwithdrawdetail{}, err
}
if bizErr := resp.TryIntoErr(); bizErr != nil {
return RespFundsGetwithdrawdetail{}, bizErr
}
return resp, nil
}