This commit is contained in:
oneao committed 2026-04-17 17:25:15 +08:00
1 parent e893ef2e48
commit b6415c0d65
25 files changed
+1495 -112

No files matched your search

@@ -3,6 +3,7 @@ package router
import (
"allapp-go/internal/config"
"allapp-go/internal/handle"
"allapp-go/internal/middleware"
"github.com/gofiber/fiber/v3"
)
@@ -11,10 +12,14 @@ func SetupRouter(app *fiber.App, cfg *config.Config) {
api := app.Group(cfg.App.BaseUrl)
// ==================== data ====================
api.Post("/data/loadData", handle.LoadData)
api.Post("/data/loadDataBySql", handle.LoadDataBySql)
api.Post("/data/saveData", handle.SaveData)
data := api.Group("/data", middleware.Auth())
data.Post("/loadData", handle.LoadData)
data.Post("/loadDataBySql", handle.LoadDataBySql)
data.Post("/saveData", handle.SaveData)
data.Post("/getUniqueId", handle.GetUniqueId)
// ==================== auth ====================
api.Post("/auth/login/qq", handle.LoginQq)
api.Post("/auth/login/wechat", handle.LoginWechat)
}