mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-05 03:17:38 +08:00
27 lines
615 B
Python
27 lines
615 B
Python
from typing import List, Optional
|
|
|
|
from app.db import DbOper
|
|
from app.db.models.subscribehistory import SubscribeHistory
|
|
|
|
|
|
class SubscribeHistoryOper(DbOper):
|
|
"""
|
|
订阅历史管理。
|
|
"""
|
|
|
|
async def async_list_by_type(
|
|
self,
|
|
mtype: str,
|
|
page: Optional[int] = 1,
|
|
count: Optional[int] = 30,
|
|
) -> List[SubscribeHistory]:
|
|
"""
|
|
异步按媒体类型分页查询订阅历史。
|
|
"""
|
|
return await SubscribeHistory.async_list_by_type(
|
|
self._db,
|
|
mtype=mtype,
|
|
page=page,
|
|
count=count,
|
|
)
|