@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/app/api/walletctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func storeWalletRouter(router *gin.RouterGroup) {
|
||||
wallet := router.Group("/store_wallet")
|
||||
{
|
||||
// 获取余额
|
||||
wallet.GET("/balance", walletctrl.WalletBalance)
|
||||
// 扣款
|
||||
wallet.POST("/deduct", walletctrl.WalletDeduct)
|
||||
// 退款
|
||||
wallet.POST("/refund", walletctrl.WalletRefund)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user