31 lines
803 B
Go
31 lines
803 B
Go
package router
|
|
|
|
import (
|
|
"91porn-server/app/api/rechargectrl"
|
|
"91porn-server/app/api/withdrawctrl"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// defrayRouter 支付回调
|
|
func defrayRouter(router *gin.RouterGroup) {
|
|
groupDefray := router.Group("/defray/callback")
|
|
{
|
|
//大白鲨充值回调
|
|
groupDefray.POST("/dabaisha", rechargectrl.DaBaiShaCallBack)
|
|
groupDefray.POST("/pay_center", rechargectrl.PayCenterCallBack)
|
|
groupDefray.POST("/refund", rechargectrl.RefundCallBack)
|
|
//充值回调函数
|
|
rchg := groupDefray.Group("/rchg")
|
|
{
|
|
rchg.POST("/:name", rechargectrl.CallBack)
|
|
rchg.GET("/:name", rechargectrl.CallBack)
|
|
}
|
|
echg := groupDefray.Group("/echg")
|
|
{
|
|
echg.POST("/:name", withdrawctrl.YinseCallBack)
|
|
}
|
|
//groupDefray.POST("/echg/goldfish", withdrawctrl.GoldFishCallBack)
|
|
}
|
|
}
|