🎨 新增提现功能
This commit is contained in:
@@ -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
21
router/app/with.go
Normal 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) // 更新提现状态
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user