Files
kami_gateway/routers/router.go
sunxiaolong 8441ef727a 🎉初次代码上传
2023-11-12 21:58:38 +08:00

36 lines
1.4 KiB
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("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "*:QuerySupplierPayForResult")
web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "*:SolvePayForResult")
// 接收回调
web.Router("/daili/notify", &third_party.DaiLiImpl{}, "*:PayNotify")
web.Router("/mfcard/notify", &third_party.MFCardImpl{}, "*:PayNotify")
web.Router("/mfcard/test", &third_party.MFCardImpl{}, "*:Test")
web.Router("/mfcard/notifyV2", &third_party.MFCardV2Impl{}, "*:PayNotify")
web.Router("/gateway/supplier/order/query", &gateway.OrderController{}, "*:OrderQuery")
web.Router("/gateway/update/order", &gateway.OrderController{}, "*:OrderUpdate")
//网关可视化
web.Router("/order/create", &gateway.OrderController{}, "*:OrderCreate")
web.Router("/order/cardsuit", &gateway.OrderController{}, "*:CardSuit")
}