2021-04-27 15:33:49 +08:00
|
|
|
package routers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gateway/controllers/gateway"
|
2021-09-16 16:24:34 +08:00
|
|
|
"gateway/supplier/third_party"
|
|
|
|
"github.com/beego/beego/v2/server/web"
|
2021-04-27 15:33:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
//网关处理函数
|
2021-09-16 16:24:34 +08:00
|
|
|
web.Router("/gateway/scan", &gateway.ScanController{}, "*:Scan")
|
|
|
|
web.Router("/err/params", &gateway.ErrorGatewayController{}, "*:ErrorParams")
|
2021-04-27 15:33:49 +08:00
|
|
|
//代付相关的接口
|
2022-05-16 10:37:19 +08:00
|
|
|
web.Router("/gateway/payfor", &gateway.PayForGateway{}, "*:PayFor")
|
2021-09-16 16:24:34 +08:00
|
|
|
web.Router("/gateway/payfor/query", &gateway.PayForGateway{}, "*:PayForQuery")
|
|
|
|
web.Router("/gateway/balance", &gateway.PayForGateway{}, "*:Balance")
|
|
|
|
// 接收银行回调
|
|
|
|
web.Router("/daili/notify", &third_party.DaiLiImpl{}, "*:PayNotify")
|
2021-11-11 10:31:58 +08:00
|
|
|
|
|
|
|
web.Router("/gateway/supplier/order/query", &gateway.OrderController{}, "*:OrderQuery")
|
|
|
|
web.Router("/gateway/update/order", &gateway.OrderController{}, "*:OrderUpdate")
|
2022-04-26 08:49:08 +08:00
|
|
|
web.Router("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "*:QuerySupplierPayForResult")
|
|
|
|
web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "*:SolvePayForResult")
|
2021-04-27 15:33:49 +08:00
|
|
|
}
|