28 lines
713 B
Go
28 lines
713 B
Go
package router
|
|
|
|
import (
|
|
"91porn-server/app/api/withdrawctrl"
|
|
"91porn-server/app/middleware/limitHandler"
|
|
"91porn-server/common/constant/redisconst"
|
|
"91porn-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)
|
|
}
|
|
}
|