feat:增加插件和日历的自动缓存

This commit is contained in:
jxxghp
2025-08-25 16:37:02 +08:00
parent 1206f24fa9
commit 6664fb1716
6 changed files with 91 additions and 9 deletions
+8
View File
@@ -119,6 +119,14 @@ class SubscribeOper(DbOper):
return Subscribe.get_by_state(self._db, state)
return Subscribe.list(self._db)
async def async_list(self, state: Optional[str] = None) -> List[Subscribe]:
"""
异步获取订阅列表
"""
if state:
return await Subscribe.async_get_by_state(self._db, state)
return await Subscribe.async_list(self._db)
def delete(self, sid: int):
"""
删除订阅