feat: integrate govdoc module into leaudit platform
This commit is contained in:
@@ -36,4 +36,5 @@ class GovdocRuleResult(BaseModel):
|
||||
|
||||
# 判定
|
||||
result: Mapped[str] = mapped_column("result", String(32), default="pass", comment="执行结果:pass/fail/skipped/error")
|
||||
skipReason: Mapped[str | None] = mapped_column("skip_reason", Text, comment="跳过原因,仅 skipped/error 时使用")
|
||||
score: Mapped[float | None] = mapped_column("score", Numeric(10, 2), comment="本条得分")
|
||||
|
||||
@@ -31,6 +31,7 @@ class GovdocRun(BaseModel):
|
||||
engineVersion: Mapped[str | None] = mapped_column("engine_version", String(64), comment="引擎版本号")
|
||||
llmProvider: Mapped[str | None] = mapped_column("llm_provider", String(64), comment="LLM 提供商")
|
||||
llmModel: Mapped[str | None] = mapped_column("llm_model", String(128), comment="LLM 模型名")
|
||||
rulesPath: Mapped[str | None] = mapped_column("rules_path", String(1024), comment="本次运行使用的规则文件路径")
|
||||
|
||||
# 结果汇总
|
||||
totalScore: Mapped[float | None] = mapped_column("total_score", Numeric(10, 2), comment="总分")
|
||||
|
||||
Reference in New Issue
Block a user