mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-12-13 12:39:58 +08:00
修改网关代码的结构,调整了逻辑,删除了许多无用的代码
This commit is contained in:
40
gateway/response/payfor_resp.go
Normal file
40
gateway/response/payfor_resp.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package response
|
||||
|
||||
/**
|
||||
* 返回自动代付结果
|
||||
*/
|
||||
type PayForResponse struct {
|
||||
ResultCode string `json:"resultCode,omitempty"`
|
||||
ResultMsg string `json:"resultMsg,omitempty"`
|
||||
MerchantOrderId string `json:"merchantOrderId,omitempty"`
|
||||
SettAmount string `json:"settAmount,omitempty"`
|
||||
SettFee string `json:"settFee,omitempty"`
|
||||
Sign string `json:"sign,omitempty"`
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回商户代付结果查询结果
|
||||
*/
|
||||
type PayForQueryResponse struct {
|
||||
ResultMsg string `json:"resultMsg,omitempty"`
|
||||
MerchantOrderId string `json:"merchantOrderId,omitempty"`
|
||||
SettAmount string `json:"settAmount,omitempty"`
|
||||
SettFee string `json:"settFee,omitempty"`
|
||||
SettStatus string `json:"settStatus,omitempty"`
|
||||
Sign string `json:"sign,omitempty"`
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回商户查询余额结果
|
||||
*/
|
||||
type BalanceResponse struct {
|
||||
ResultCode string `json:"resultCode,omitempty"`
|
||||
Balance string `json:"balance,omitempty"`
|
||||
AvailableAmount string `json:"availableAmount,omitempty"`
|
||||
FreezeAmount string `json:"freezeAmount,omitempty"`
|
||||
WaitAmount string `json:"waitAmount,omitempty"`
|
||||
LoanAmount string `json:"loanAmount,omitempty"`
|
||||
PayforAmount string `json:"payforAmount,omitempty"`
|
||||
ResultMsg string `json:"resultMsg,omitempty"`
|
||||
Sign string `json:"sign,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user