feat: add superadmin health center
This commit is contained in:
29
backend/app/http/super/v1/healths.go
Normal file
29
backend/app/http/super/v1/healths.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
dto "quyun/v2/app/http/super/v1/dto"
|
||||
"quyun/v2/app/services"
|
||||
|
||||
"github.com/gofiber/fiber/v3"
|
||||
)
|
||||
|
||||
// @provider
|
||||
type healths struct{}
|
||||
|
||||
// Health overview
|
||||
//
|
||||
// @Router /super/v1/health/overview [get]
|
||||
// @Summary Health overview
|
||||
// @Description Platform health overview
|
||||
// @Tags Health
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param tenant_id query int false "Tenant ID"
|
||||
// @Param start_at query string false "Start time"
|
||||
// @Param end_at query string false "End time"
|
||||
// @Param upload_stuck_hours query int false "Upload stuck hours"
|
||||
// @Success 200 {object} dto.SuperHealthOverviewResponse
|
||||
// @Bind filter query
|
||||
func (c *healths) Overview(ctx fiber.Ctx, filter *dto.SuperHealthOverviewFilter) (*dto.SuperHealthOverviewResponse, error) {
|
||||
return services.Super.HealthOverview(ctx, filter)
|
||||
}
|
||||
Reference in New Issue
Block a user