mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-16 23:49:20 +08:00
42 lines
1.4 KiB
Go
42 lines
1.4 KiB
Go
/***************************************************
|
|
** @Desc : This file for ...
|
|
** @Time : 2019/10/28 9:39
|
|
** @Author : yuebin
|
|
** @File : supplier_interface
|
|
** @Last Modified by : yuebin
|
|
** @Last Modified time: 2019/10/28 9:39
|
|
** @Software: GoLand
|
|
****************************************************/
|
|
package controller
|
|
|
|
import (
|
|
"dongfeng-pay/service/models"
|
|
)
|
|
|
|
//定义扫码支付的返回值
|
|
type ScanData struct {
|
|
Supplier string //上游的通道供应商
|
|
PayType string //支付类型
|
|
OrderNo string //下游商户请求订单号
|
|
BankNo string //本系统的请求订单号
|
|
OrderPrice string //订单金额
|
|
FactPrice string //实际的展示在客户面前的金额
|
|
Status string //状态码 '00' 成功
|
|
PayUrl string //支付二维码链接地址
|
|
Msg string //附加的信息
|
|
}
|
|
|
|
type PayInterface interface {
|
|
Scan(models.OrderInfo, models.RoadInfo, models.MerchantInfo) ScanData
|
|
H5(models.OrderInfo, models.RoadInfo, models.MerchantInfo) ScanData
|
|
Fast(models.OrderInfo, models.RoadInfo, models.MerchantInfo) bool
|
|
Syt(models.OrderInfo, models.RoadInfo, models.MerchantInfo) ScanData
|
|
Web(models.OrderInfo, models.RoadInfo, models.MerchantInfo) bool
|
|
PayNotify()
|
|
PayQuery(models.OrderInfo) bool
|
|
PayFor(models.PayforInfo) string
|
|
PayForNotify() string
|
|
PayForQuery(models.PayforInfo) (string, string)
|
|
BalanceQuery(models.RoadInfo) float64
|
|
}
|