feat: add superadmin health center

This commit is contained in:
2026-01-17 09:18:05 +08:00
parent 94a10a3af0
commit 4f2b8ea3ad
14 changed files with 870 additions and 5 deletions

View File

@@ -34,6 +34,7 @@ type Routes struct {
creatorApplications *creatorApplications
creators *creators
finance *finance
healths *healths
notifications *notifications
orders *orders
payoutAccounts *payoutAccounts
@@ -243,6 +244,12 @@ func (r *Routes) Register(router fiber.Router) {
r.finance.ListLedgers,
Query[dto.SuperLedgerListFilter]("filter"),
))
// Register routes for controller: healths
r.log.Debugf("Registering route: Get /super/v1/health/overview -> healths.Overview")
router.Get("/super/v1/health/overview"[len(r.Path()):], DataFunc1(
r.healths.Overview,
Query[dto.SuperHealthOverviewFilter]("filter"),
))
// Register routes for controller: notifications
r.log.Debugf("Registering route: Get /super/v1/notifications -> notifications.List")
router.Get("/super/v1/notifications"[len(r.Path()):], DataFunc1(