feat: 添加独立其他设置菜单及有效端参数保存
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"kra/internal/server/handler"
|
||||
)
|
||||
|
||||
func RegisterOtherSettings(private *gin.RouterGroup, h *handler.OtherSettings) {
|
||||
private.GET("/sw/settings/effectiveness", h.Get)
|
||||
private.PUT("/sw/settings/effectiveness", h.Save)
|
||||
}
|
||||
@@ -20,6 +20,7 @@ func (r *Routes) RegisterRoutes(public, private *gin.RouterGroup, engine *gin.En
|
||||
return
|
||||
}
|
||||
registrations := []func(){
|
||||
func() { RegisterOtherSettings(private, r.handlers.OtherSettings) },
|
||||
func() {
|
||||
private.GET("/sw/rank/channel", r.handlers.Ranking.Channel)
|
||||
private.GET("/sw/rank/business", r.handlers.Ranking.Business)
|
||||
|
||||
Reference in New Issue
Block a user