dongfeng-pay/gateway/routers/router.go

25 lines
1008 B
Go
Raw Normal View History

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
//代付相关的接口
2021-09-16 16:24:34 +08:00
web.Router("gateway/payfor", &gateway.PayForGateway{}, "*:PayFor")
web.Router("/gateway/payfor/query", &gateway.PayForGateway{}, "*:PayForQuery")
web.Router("/gateway/balance", &gateway.PayForGateway{}, "*:Balance")
// 接收银行回调
web.Router("/daili/notify", &third_party.DaiLiImpl{}, "*:PayNotify")
web.Router("/gateway/supplier/order/query", &gateway.OrderController{}, "*:OrderQuery")
web.Router("/gateway/update/order", &gateway.OrderController{}, "*:OrderUpdate")
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
}