Files
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

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