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") 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") }