dongfeng-pay/gateway/routers/router.go
2021-09-16 16:24:34 +08:00

20 lines
652 B
Go

package routers
import (
"gateway/controllers/gateway"
"gateway/supplier/third_party"
"github.com/beego/beego/v2/server/web"
)
func init() {
//网关处理函数
web.Router("/gateway/scan", &gateway.ScanController{}, "*:Scan")
web.Router("/err/params", &gateway.ErrorGatewayController{}, "*:ErrorParams")
//代付相关的接口
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")
}