feat: enhance superadmin dashboard overview
This commit is contained in:
@@ -50,6 +50,20 @@ func (c *contents) ListTenantContents(ctx fiber.Ctx, tenantID int64, filter *dto
|
||||
return services.Super.ListContents(ctx, filter)
|
||||
}
|
||||
|
||||
// Content statistics
|
||||
//
|
||||
// @Router /super/v1/contents/statistics [get]
|
||||
// @Summary Content statistics
|
||||
// @Description Content statistics
|
||||
// @Tags Content
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} dto.SuperContentStatisticsResponse
|
||||
// @Bind filter query
|
||||
func (c *contents) Statistics(ctx fiber.Ctx, filter *dto.SuperContentStatisticsFilter) (*dto.SuperContentStatisticsResponse, error) {
|
||||
return services.Super.ContentStatistics(ctx, filter)
|
||||
}
|
||||
|
||||
// Update content status
|
||||
//
|
||||
// @Router /super/v1/tenants/:tenantID<int>/contents/:contentID<int>/status [patch]
|
||||
|
||||
Reference in New Issue
Block a user