feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务
- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。 - 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。 - 更新 ORM 模型,增加出站报表相关的持久化模型。 - 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
1 parent
39fe3c05f2
commit
911afa0f73
152 files changed
+9861
-2984
No files matched your search
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
backend/tests/test_freight_rpa_outbound_models.py
|
||||
|
||||
用途:锁定出站 RPA 三模型的类导出与表名,防止建表时漂移或漏导出。
|
||||
依赖:app.models 聚合导出的 FreightRpaOutbound* 类。
|
||||
逻辑:被 pytest 直接导入;不连数据库。生产侧漏建类时本文件 import 即失败。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from app.models import FreightRpaOutboundReportConfig, FreightRpaOutboundUnitRun, FreightRpaOutboundReportFile
|
||||
|
||||
|
||||
def test_outbound_model_tablenames():
|
||||
"""出站配置 / 单元运行 / 归档文件必须使用规格表名。"""
|
||||
assert FreightRpaOutboundReportConfig.__tablename__ == "freight_rpa_outbound_report_configs"
|
||||
assert FreightRpaOutboundUnitRun.__tablename__ == "freight_rpa_outbound_rpa_unit_runs"
|
||||
assert FreightRpaOutboundReportFile.__tablename__ == "freight_rpa_outbound_report_files"
|
||||
Reference in new issue
Block a user