feat: 重构项目结构,添加 WPF 应用

- 将核心功能提取到 WCTDataMiner.Core 类库
- 添加 WCTDataMiner.Wpf 桌面应用
- 支持数据解析、导出、统计等功能

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ssss
2026-07-03 10:47:27 +08:00
parent 3dcd9f7c0b
commit d1a89cb86a
55 changed files with 659 additions and 87 deletions

View File

@@ -0,0 +1,36 @@
using WCTDataMiner.Core.Models;
namespace WCTDataMiner.Core.Data;
/// <summary>
/// 初始数据种子
/// </summary>
public static class SeedData
{
/// <summary>
/// TX面板类型预设数据
/// </summary>
public static readonly TxPanel[] DefaultTxPanels =
[
new() { Name = "none" },
new() { Name = "single-mold" },
new() { Name = "single-rapid" },
new() { Name = "single-3d" },
new() { Name = "dual-mold" },
new() { Name = "dual-rapid" },
new() { Name = "dual-3d" }
];
/// <summary>
/// 初始化种子数据
/// </summary>
public static void Initialize(WctMinerDbContext context)
{
// 确保 TxPanel 表有预设数据
if (!context.TxPanels.Any())
{
context.TxPanels.AddRange(DefaultTxPanels);
context.SaveChanges();
}
}
}