22 lines
628 B
Go
22 lines
628 B
Go
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) // 更新提现状态
|
|
}
|
|
}
|