refactor(core,ai): 调整模块导入路径并移除废弃文件 - 修复 scheduler.py 中的导入路径错误,将 reports.service 改为 reports.services - 移除废弃的 app/core/background/task_queue.py 文件 - 移除废弃的 app/modules/ai_agent/adapters.py 文件 - 修复 ai_memory/service.py 中的导入路径错误,将 events.service 改为 events.services ```
19 lines
539 B
Python
19 lines
539 B
Python
from sqlalchemy.orm import Session
|
|
|
|
from app.modules.risk.services.actions import RiskActionMixin
|
|
from app.modules.risk.services.detectors import RiskDetectorMixin
|
|
from app.modules.risk.services.generation import RiskGenerationMixin
|
|
from app.modules.risk.services.query import RiskQueryMixin
|
|
|
|
|
|
class RiskService(
|
|
RiskGenerationMixin,
|
|
RiskDetectorMixin,
|
|
RiskActionMixin,
|
|
RiskQueryMixin,
|
|
):
|
|
"""Evaluate rule-based business risk signals from internal ledgers."""
|
|
|
|
def __init__(self, db: Session):
|
|
self.db = db
|