Add get all cookies by region

This commit is contained in:
xtaodada 2023-09-09 19:25:00 +08:00
parent b540527c68
commit 1287afc9c5
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -36,6 +36,9 @@ class CookiesService(BaseService):
async def delete(self, cookies: Cookies) -> None:
return await self._repository.delete(cookies)
async def get_all_by_region(self, region: RegionEnum) -> List[Cookies]:
return await self._repository.get_all_by_region(region)
class PublicCookiesService:
def __init__(self, cookies_repository: CookiesRepository, public_cookies_cache: PublicCookiesCache):