dongfeng-pay/jhgateway/routers/router.go

17 lines
540 B
Go
Raw Normal View History

2019-12-19 14:47:58 +08:00
package routers
import (
"github.com/astaxie/beego"
2019-12-19 16:43:20 +08:00
"dongfeng-pay/jhgateway/controllers/gateway"
2019-12-19 14:47:58 +08:00
)
func init() {
//网关处理函数
beego.Router("/gateway/scan", &gateway.ScanController{}, "*:Scan")
beego.Router("/err/params", &gateway.ErrorGatewayController{}, "*:ErrorParams")
//代付相关的接口
beego.Router("gateway/payfor", &gateway.PayForGateway{}, "*:PayFor")
beego.Router("/gateway/payfor/query", &gateway.PayForGateway{}, "*:PayForQuery")
beego.Router("/gateway/balance", &gateway.PayForGateway{}, "*:Balance")
}