首页接口实现

This commit is contained in:
2026-07-21 16:57:46 +08:00
parent 83d38956ca
commit 5103c08c2b
5 changed files with 918 additions and 177 deletions

View File

@@ -170,6 +170,12 @@ func userRouter(api fiber.Router) {
func adminRouter(api fiber.Router) {
api = api.Group("/admin")
// home 后台首页
var home = api.Group("/home")
home.Post("/overview", handlers.HomeOverview)
home.Post("/trend", handlers.HomeTrend)
home.Post("/extractable", handlers.HomeExtractable)
// admin 管理员
var admin = api.Group("/admin")
admin.Post("/all", handlers.AllAdminByAdmin)