feat: 迁移渠道列表新增和游戏累计分布
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"kra/internal/server/handler"
|
||||
)
|
||||
|
||||
func RegisterChannel(private *gin.RouterGroup, h *handler.Channel) {
|
||||
g := private.Group("/sw/promote")
|
||||
g.GET("/list", h.List)
|
||||
g.GET("/bindOptions", h.Bindings)
|
||||
g.GET("/game-distribution", h.Games)
|
||||
g.POST("", h.Create)
|
||||
}
|
||||
@@ -20,6 +20,7 @@ func (r *Routes) RegisterRoutes(public, private *gin.RouterGroup, engine *gin.En
|
||||
return
|
||||
}
|
||||
registrations := []func(){
|
||||
func() { RegisterChannel(private, r.handlers.Channel) },
|
||||
func() {
|
||||
private.GET("/sw/promoteActivePool/bindList", r.handlers.Activation.List)
|
||||
private.GET("/sw/promoteActivePool/bindSpendDetail", r.handlers.Activation.SpendDetail)
|
||||
|
||||
Reference in New Issue
Block a user