taolib.testing.file_storage.services.stats_service#

统计服务。

提供存储统计聚合查询。

Classes#

StatsService

统计服务。

Module Contents#

class taolib.testing.file_storage.services.stats_service.StatsService(bucket_repo: taolib.testing.file_storage.repository.bucket_repo.BucketRepository, file_repo: taolib.testing.file_storage.repository.file_repo.FileRepository, upload_repo: taolib.testing.file_storage.repository.upload_repo.UploadSessionRepository)#

统计服务。

_bucket_repo#
_file_repo#
_upload_repo#
async get_bucket_stats(bucket_id: str) taolib.testing.file_storage.models.stats.BucketStatsResponse | None#

获取存储桶统计。

async get_storage_overview() taolib.testing.file_storage.models.stats.StorageOverviewResponse#

获取全局存储概览。

async get_upload_stats() taolib.testing.file_storage.models.stats.UploadStatsResponse#

获取上传统计。