1 Star 1 Fork 0

颜言/gopay

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
model_bill.go 1.39 KB
Copy Edit Raw Blame History
颜言 authored 2024-09-12 18:02 +08:00 . 原版
package wechat
// 交易、资金账单 Rsp
type BillRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *TradeBill `json:"response,omitempty"`
Error string `json:"-"`
}
// 二级商户资金账单 Rsp
type EcommerceFundFlowBillRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *DownloadBill `json:"response,omitempty"`
Error string `json:"-"`
}
// =========================================================分割=========================================================
type TradeBill struct {
HashType string `json:"hash_type"`
HashValue string `json:"hash_value"`
DownloadUrl string `json:"download_url"`
}
type BillDetail struct {
BillSequence int `json:"bill_sequence"` // 商户将多个文件按账单文件序号的顺序合并为完整的资金账单文件,起始值为1
HashType string `json:"hash_type"`
HashValue string `json:"hash_value"`
DownloadUrl string `json:"download_url"`
EncryptKey string `json:"encrypt_key"` // 加密账单文件使用的加密密钥。密钥用商户证书的公钥进行加密,然后进行Base64编码
Nonce string `json:"nonce"` // 加密账单文件使用的随机字符串
}
type DownloadBill struct {
DownloadBillCount int `json:"download_bill_count"`
DownloadBillList []*BillDetail `json:"download_bill_list"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ujq/gopay.git
git@gitee.com:ujq/gopay.git
ujq
gopay
gopay
95cb943fb81a

Search