TestStatisticsServiceInterface.php 561 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Module\Test\Services;
  3. use App\Module\Test\Models\Test as TestModel;
  4. interface TestStatisticsServiceInterface
  5. {
  6. /**
  7. * 获取总数统计
  8. *
  9. * @return array
  10. */
  11. public function getTotalStatistics(): array;
  12. /**
  13. * 获取状态分布统计
  14. *
  15. * @return array
  16. */
  17. public function getStatusDistribution(): array;
  18. /**
  19. * 获取每日创建数量统计
  20. *
  21. * @param int $days
  22. * @return array
  23. */
  24. public function getDailyCreationStatistics(int $days = 7): array;
  25. }