20 lines
451 B
Python
20 lines
451 B
Python
from app import schemas
|
|
from app.chain import ChainBase
|
|
|
|
|
|
class DashboardChain(ChainBase):
|
|
"""
|
|
各类仪表板统计处理链
|
|
"""
|
|
def media_statistic(self) -> schemas.Statistic:
|
|
"""
|
|
媒体数量统计
|
|
"""
|
|
return self.run_module("media_statistic")
|
|
|
|
def downloader_info(self) -> schemas.DownloaderInfo:
|
|
"""
|
|
下载器信息
|
|
"""
|
|
return self.run_module("downloader_info")
|