feat: 添加独立其他设置菜单及有效端参数保存

This commit is contained in:
Yvan
2026-11-04 21:18:31 +08:00
parent c2e8b729be
commit ca9ce99b66
27 changed files with 805 additions and 9 deletions
+11
View File
@@ -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)
}
+1
View File
@@ -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)