mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-10-16 10:08:00 +08:00
由gopath形式改为module
This commit is contained in:
16
gateway/routers/router.go
Normal file
16
gateway/routers/router.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package routers
|
||||
|
||||
import (
|
||||
"gateway/controllers/gateway"
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
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")
|
||||
}
|
Reference in New Issue
Block a user