init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package router
import (
"91jd-server/app/api/rechargectrl"
"91jd-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)
}
}