Files
group_fqcd_jr/app/service/risk_scan_schedule_config.py
T
张胜宇 e239eb778b docs: 品牌全量口径统一为「南方基金」+ 作废文档清理
1) 客服 Agent 四份交付文档 + 构建脚手架:品牌由包装占位 XX科技 / 旧名 南方财富
   统一为南方基金(热线 400-889-8899 / 官网 nffund.com),系统名改为「智能服务系统」;
   同步追加 §0.4 修订记录行,工程记录行保留原占位字面以支撑硬编码扫描验收。
2) 开发文档:清理 28 份已作废/残留文档(14 份移出归档 + 14 份仓库副本),
   新增《文档规整方案与开发前待决事项-2026-09-17》。
3) 客服agent 四份交付文档首次纳入本分支。
2026-09-17 15:15:22 +08:00

26 lines
782 B
Python

"""风控定时扫描环境配置读取。"""
from __future__ import annotations
from dataclasses import dataclass
from app.core.config import get_settings
@dataclass(frozen=True, slots=True)
class RiskScanScheduleConfig:
enabled: bool = False
interval_minutes: int = 5
run_immediately: bool = False
retry_limit: int = 2
async def load_risk_scan_schedule_config() -> RiskScanScheduleConfig:
"""读取环境变量配置;缺失时使用默认关闭值。"""
settings = get_settings()
return RiskScanScheduleConfig(
enabled=settings.risk_scan_schedule_enabled,
interval_minutes=settings.risk_scan_interval_minutes,
run_immediately=settings.risk_scan_run_immediately,
retry_limit=settings.risk_scan_retry_limit,
)