CounterDroneBackend/src/CounterDrone.Core/Models/SimulationReport.cs
tian 8bcf4cf675 VERSION 0.12.0 — PDF 导出 + 报告模板架构 + 对接文档 V2.0
- PdfSharpCore 1.3.64 引入(纯托管,Unity IL2CPP 兼容,+9 DLL)
- ReportData 结构化模型 + MarkdownRenderer + StandardPdfTemplate
- IReportService.ExportReport(id, format) 按需导出 PDF/MD
- 仿真后自动生成 MD 到 reports 目录,PDF 按需调用
- CJK 字体嵌入(SimHei),IPathProvider + GetFontPath
- ReportGenerator 重构为构建 ReportData,去掉 emoji
- check_unity_build.ps1 修复 -quit 参数缺失导致超时
- 对接文档 V2.0:坐标系/3D 可视化/完整枚举/Manager 签名/模型字段
- 262 测试全部通过
2026-06-20 11:57:38 +08:00

35 lines
976 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using SQLite;
namespace CounterDrone.Core.Models
{
/// <summary>仿真报告</summary>
[Table("SimulationReport")]
public class SimulationReport
{
[PrimaryKey]
public string Id { get; set; } = Guid.NewGuid().ToString();
[Indexed]
public string ScenarioId { get; set; } = string.Empty;
public string ScenarioName { get; set; } = string.Empty;
public string ScenarioNumber { get; set; } = string.Empty;
public string CompletedAt { get; set; } = string.Empty;
public int DroneCount { get; set; }
public int UnitCount { get; set; }
public int InterceptResult { get; set; }
/// <summary>Markdown 文本(用于快速展示)</summary>
public string Content { get; set; } = string.Empty;
/// <summary>结构化报告数据 JSON用于 PDF 等格式重新渲染)</summary>
public string? ReportDataJson { get; set; }
}
}