Files
hgmj_server/app/router/withdraw.go
T
2026-10-08 16:50:13 +08:00

28 lines
705 B
Go

package router
import (
"91jd-server/app/api/withdrawctrl"
"91jd-server/app/middleware/limitHandler"
"91jd-server/common/constant/redisconst"
"91jd-server/common/stderr"
"github.com/gin-gonic/gin"
)
func withdrawRouter(router *gin.RouterGroup) {
{
//提现
router.POST("/withdraw",
limitHandler.FilterRequestByUser(redisconst.WithdrawLimtKey(), redisconst.WithdrawLimtKeyExpire(),
stderr.WithdrawBusy),
withdrawctrl.Withdraw,
)
//提现类型
router.GET("/withdraw/type", withdrawctrl.GetType)
//获取提现订单列表
router.GET("/withdraw/order", withdrawctrl.WithdrawOrder)
//获取提现配置列表
router.GET("/withdraw/cfg", withdrawctrl.GetWithdrawCfg)
}
}