from __future__ import annotations

from typing import Any

from sqlalchemy.orm import Session

from app.services.digital_employee_finance_report_task import (
    DigitalEmployeeFinanceReportTaskService,
)


class HermesExpenseReportService:
    """旧任务名的安全入口，统一复用租户化 PDF/邮件报告链。"""

    def __init__(self, db: Session) -> None:
        self.db = db

    def generate_weekly_report(
        self,
        log_id: str | None = None,
        *,
        tenant_id: str = "default",
    ) -> dict[str, Any]:
        del log_id
        return DigitalEmployeeFinanceReportTaskService(self.db).generate_report(
            report_type="weekly",
            tenant_id=tenant_id,
        )
