🎨 新增提现功能

This commit is contained in:
2025-09-10 02:31:33 +08:00
parent b8b859f890
commit 2293ee2463
10 changed files with 369 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ type RouterGroup struct {
BannerRouter
OrderRouter
RedeemCodeRouter
WithRouter
}
var userApi = api.ApiGroupApp.AppApiGroup.AppUserApi
@@ -14,3 +15,4 @@ var bannerApi = api.ApiGroupApp.AppApiGroup.BannerApi
var orderApi = api.ApiGroupApp.AppApiGroup.OrderApi
var teacherVipApi = api.ApiGroupApp.AppApiGroup.TeacherVip
var redeemCodeApi = api.ApiGroupApp.AppApiGroup.RedeemCodeApi
var withApi = api.ApiGroupApp.AppApiGroup.WithApi

21
router/app/with.go Normal file
View File

@@ -0,0 +1,21 @@
package app
import "github.com/gin-gonic/gin"
type WithRouter struct{}
// InitWithRouter 初始化 With 路由信息
func (s *WithRouter) InitWithRouter(AppRouter, SysteamRouter *gin.RouterGroup) {
appRouter := AppRouter.Group("with")
sysRouter := SysteamRouter.Group("sys/with")
{
appRouter.POST("", withApi.Create) // 创建提现请求
appRouter.GET("list", withApi.GetList) // 获取提现列表
appRouter.PUT("cancel", withApi.Cancel) // 取消提现请求
}
{
sysRouter.GET("list", withApi.GetAdminList) // 获取提现列表
sysRouter.PUT("", withApi.UpdateStatus) // 更新提现状态
}
}