package router import ( "91porn-server/web/api/withdrawctrl" "github.com/gin-gonic/gin" ) func withdrawRouter(router *gin.RouterGroup) { { //商品管理 router.POST("/withdraw/check", withdrawctrl.Check) router.POST("/product/refuse", withdrawctrl.Refuse) router.GET("/withdraw/list", withdrawctrl.ExchgOrder) router.POST("/withdraw/refund", withdrawctrl.Refund) router.GET("/withdraw/refund/list", withdrawctrl.RefundList) router.POST("/withdraw/refund/dealwith", withdrawctrl.RefundDealWith) } group := router.Group("/withdraw") { //支付渠道 group.GET("/channel/list", withdrawctrl.GetChannel) group.POST("/channel/update", withdrawctrl.ChannelUpdate) group.POST("/channel/add", withdrawctrl.ChannelInsert) group.DELETE("/channel/delete", withdrawctrl.ChannelDelete) group.POST("/channel/batch", withdrawctrl.ChannelBatch) } txnact := router.Group("/txnact") { txnact.POST("/list", withdrawctrl.FindAct) txnact.POST("/edit", withdrawctrl.EditAct) txnact.POST("/del", withdrawctrl.DelAct) } }