feat: 迁移注册充值明细和筛选导出
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"kra/internal/server/handler"
|
||||
)
|
||||
|
||||
func RegisterLedger(private *gin.RouterGroup, h *handler.Ledger) {
|
||||
private.GET("/sw/register/list", h.Registrations)
|
||||
private.POST("/sw/register/export", h.Export(false))
|
||||
private.GET("/sw/spend/list", h.Spends)
|
||||
private.POST("/sw/spend/export", h.Export(true))
|
||||
private.GET("/sw/serverAnalysis/games", h.Games)
|
||||
}
|
||||
@@ -20,6 +20,7 @@ func (r *Routes) RegisterRoutes(public, private *gin.RouterGroup, engine *gin.En
|
||||
return
|
||||
}
|
||||
registrations := []func(){
|
||||
func() { RegisterLedger(private, r.handlers.Ledger) },
|
||||
func() { private.GET("/sw/promote/portrait", r.handlers.ChannelPortrait.Portrait) },
|
||||
func() {
|
||||
private.GET("/sw/business/:userId/portrait", r.handlers.BusinessPortrait.ForUser)
|
||||
|
||||
Reference in New Issue
Block a user