entrance.py 565 B

12345678910111213141516
  1. from app.core.database import DatabaseManager
  2. from app.core.observability import LogService
  3. from ._const import AdPlatformArticlesDecodeConst
  4. from ._mapper import AdPlatformArticlesDecodeMapper
  5. from ._util import AdPlatformArticlesDecodeUtil
  6. class AdPlatformArticlesDecodeTask(AdPlatformArticlesDecodeConst):
  7. def __init__(self, pool: DatabaseManager, log_service: LogService):
  8. self.pool = pool
  9. self.log_service = log_service
  10. self.mapper = AdPlatformArticlesDecodeMapper(self.pool)
  11. self.tool = AdPlatformArticlesDecodeUtil()