docs: 同步项目重命名后的架构文档
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# WCTDataMiner 文档中心
|
# Gpulse.WCT.DataAnalyzer 文档中心
|
||||||
|
|
||||||
> 无线充电 FOD(异物检测)日志数据采集系统
|
> 无线充电 FOD(异物检测)日志数据采集系统
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ dotnet run clean --all --confirm
|
|||||||
// Commands/ParseCommand.cs
|
// Commands/ParseCommand.cs
|
||||||
using System.CommandLine;
|
using System.CommandLine;
|
||||||
|
|
||||||
namespace WCTDataMiner.Commands;
|
namespace Gpulse.WCT.DataAnalyzer.Commands;
|
||||||
|
|
||||||
public class ParseCommand : Command
|
public class ParseCommand : Command
|
||||||
{
|
{
|
||||||
@@ -139,7 +139,7 @@ public class ParseCommand : Command
|
|||||||
using System.CommandLine;
|
using System.CommandLine;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using WCTDataMiner.Commands;
|
using Gpulse.WCT.DataAnalyzer.Commands;
|
||||||
|
|
||||||
var builder = Host.CreateApplicationBuilder(args);
|
var builder = Host.CreateApplicationBuilder(args);
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ builder.Services.AddDatabaseServices(builder.Configuration);
|
|||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// 创建根命令
|
// 创建根命令
|
||||||
var rootCommand = new RootCommand("WCTDataMiner - FOD Log Data Parser");
|
var rootCommand = new RootCommand("Gpulse.WCT.DataAnalyzer - FOD Log Data Parser");
|
||||||
|
|
||||||
// 使用服务提供者获取服务
|
// 使用服务提供者获取服务
|
||||||
using var scope = app.Services.CreateScope();
|
using var scope = app.Services.CreateScope();
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Data/IDbContextFactory.cs
|
// Data/IDbContextFactory.cs
|
||||||
using WCTDataMiner.Data;
|
using Gpulse.WCT.DataAnalyzer.Data;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data;
|
namespace Gpulse.WCT.DataAnalyzer.Data;
|
||||||
|
|
||||||
public interface IDbContextFactory
|
public interface IDbContextFactory
|
||||||
{
|
{
|
||||||
@@ -27,7 +27,7 @@ public interface IDbContextFactory
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data;
|
namespace Gpulse.WCT.DataAnalyzer.Data;
|
||||||
|
|
||||||
public class DbContextFactory : IDbContextFactory
|
public class DbContextFactory : IDbContextFactory
|
||||||
{
|
{
|
||||||
@@ -96,9 +96,9 @@ public class DbContextFactory : IDbContextFactory
|
|||||||
```csharp
|
```csharp
|
||||||
// Extensions/ServiceCollectionExtensions.cs
|
// Extensions/ServiceCollectionExtensions.cs
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using WCTDataMiner.Data;
|
using Gpulse.WCT.DataAnalyzer.Data;
|
||||||
|
|
||||||
namespace WCTDataMiner.Extensions;
|
namespace Gpulse.WCT.DataAnalyzer.Extensions;
|
||||||
|
|
||||||
public static class ServiceCollectionExtensions
|
public static class ServiceCollectionExtensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,9 +39,9 @@
|
|||||||
```csharp
|
```csharp
|
||||||
// Parsers/FileNameParser.cs
|
// Parsers/FileNameParser.cs
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using WCTDataMiner.Services;
|
using Gpulse.WCT.DataAnalyzer.Services;
|
||||||
|
|
||||||
namespace WCTDataMiner.Parsers;
|
namespace Gpulse.WCT.DataAnalyzer.Parsers;
|
||||||
|
|
||||||
public class FileNameParser
|
public class FileNameParser
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -102,9 +102,9 @@ private static readonly Regex FodPattern = new(
|
|||||||
```csharp
|
```csharp
|
||||||
// Parsers/PlossParser.cs
|
// Parsers/PlossParser.cs
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Parsers;
|
namespace Gpulse.WCT.DataAnalyzer.Parsers;
|
||||||
|
|
||||||
public class PlossParser : IParser<PlossRecord>
|
public class PlossParser : IParser<PlossRecord>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,9 +53,9 @@ private static readonly Regex QfodPattern = new(
|
|||||||
```csharp
|
```csharp
|
||||||
// Parsers/QfodParser.cs
|
// Parsers/QfodParser.cs
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Parsers;
|
namespace Gpulse.WCT.DataAnalyzer.Parsers;
|
||||||
|
|
||||||
public class QfodParser : IParser<QfodRecord>
|
public class QfodParser : IParser<QfodRecord>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Parsers/IParser.cs
|
// Parsers/IParser.cs
|
||||||
namespace WCTDataMiner.Parsers;
|
namespace Gpulse.WCT.DataAnalyzer.Parsers;
|
||||||
|
|
||||||
public interface IParser<TRecord>
|
public interface IParser<TRecord>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -67,11 +67,11 @@ sequenceDiagram
|
|||||||
// Services/ParseService.cs
|
// Services/ParseService.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using WCTDataMiner.Data;
|
using Gpulse.WCT.DataAnalyzer.Data;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
using WCTDataMiner.Parsers;
|
using Gpulse.WCT.DataAnalyzer.Parsers;
|
||||||
|
|
||||||
namespace WCTDataMiner.Services;
|
namespace Gpulse.WCT.DataAnalyzer.Services;
|
||||||
|
|
||||||
public class ParseService
|
public class ParseService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Architecture: WCTDataMiner
|
# Architecture: Gpulse.WCT.DataAnalyzer
|
||||||
|
|
||||||
> 无线充电 FOD(异物检测)日志数据采集系统,从日志文件中解析 Qfod 和 Ploss 数据并存储到数据库
|
> 无线充电 FOD(异物检测)日志数据采集系统,从日志文件中解析 Qfod 和 Ploss 数据并存储到数据库
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ graph TD
|
|||||||
## 5. 目录结构
|
## 5. 目录结构
|
||||||
|
|
||||||
```
|
```
|
||||||
src/WCTDataMiner/
|
src/Gpulse.WCT.DataAnalyzer/
|
||||||
├── Parsers/
|
├── Parsers/
|
||||||
│ ├── IParser.cs
|
│ ├── IParser.cs
|
||||||
│ ├── QfodParser.cs
|
│ ├── QfodParser.cs
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
"WCTDataMiner": "Debug"
|
"Gpulse.WCT.DataAnalyzer": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Paths": {
|
"Paths": {
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Configuration/AppSettings.cs
|
// Configuration/AppSettings.cs
|
||||||
namespace WCTDataMiner.Configuration;
|
namespace Gpulse.WCT.DataAnalyzer.Configuration;
|
||||||
|
|
||||||
public class AppSettings
|
public class AppSettings
|
||||||
{
|
{
|
||||||
@@ -77,7 +77,7 @@ public class PathSettings
|
|||||||
// Program.cs 配置加载部分
|
// Program.cs 配置加载部分
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using WCTDataMiner.Configuration;
|
using Gpulse.WCT.DataAnalyzer.Configuration;
|
||||||
|
|
||||||
var builder = Host.CreateDefaultBuilder(args);
|
var builder = Host.CreateDefaultBuilder(args);
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/PlossRecord.cs
|
// Models/PlossRecord.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class PlossRecord
|
public class PlossRecord
|
||||||
{
|
{
|
||||||
@@ -117,9 +117,9 @@ public class PlossRecord
|
|||||||
// Data/Configurations/PlossRecordConfiguration.cs
|
// Data/Configurations/PlossRecordConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class PlossRecordConfiguration : IEntityTypeConfiguration<PlossRecord>
|
public class PlossRecordConfiguration : IEntityTypeConfiguration<PlossRecord>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/QfodRecord.cs
|
// Models/QfodRecord.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class QfodRecord
|
public class QfodRecord
|
||||||
{
|
{
|
||||||
@@ -93,9 +93,9 @@ public class QfodRecord
|
|||||||
// Data/Configurations/QfodRecordConfiguration.cs
|
// Data/Configurations/QfodRecordConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class QfodRecordConfiguration : IEntityTypeConfiguration<QfodRecord>
|
public class QfodRecordConfiguration : IEntityTypeConfiguration<QfodRecord>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/RxType.cs
|
// Models/RxType.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class RxType
|
public class RxType
|
||||||
{
|
{
|
||||||
@@ -58,9 +58,9 @@ public class RxType
|
|||||||
// Data/Configurations/RxTypeConfiguration.cs
|
// Data/Configurations/RxTypeConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class RxTypeConfiguration : IEntityTypeConfiguration<RxType>
|
public class RxTypeConfiguration : IEntityTypeConfiguration<RxType>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/TxHardware.cs
|
// Models/TxHardware.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class TxHardware
|
public class TxHardware
|
||||||
{
|
{
|
||||||
@@ -49,9 +49,9 @@ public class TxHardware
|
|||||||
// Data/Configurations/TxHardwareConfiguration.cs
|
// Data/Configurations/TxHardwareConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class TxHardwareConfiguration : IEntityTypeConfiguration<TxHardware>
|
public class TxHardwareConfiguration : IEntityTypeConfiguration<TxHardware>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/TxPanel.cs
|
// Models/TxPanel.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class TxPanel
|
public class TxPanel
|
||||||
{
|
{
|
||||||
@@ -63,9 +63,9 @@ public class TxPanel
|
|||||||
// Data/Configurations/TxPanelConfiguration.cs
|
// Data/Configurations/TxPanelConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class TxPanelConfiguration : IEntityTypeConfiguration<TxPanel>
|
public class TxPanelConfiguration : IEntityTypeConfiguration<TxPanel>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/TxSoftware.cs
|
// Models/TxSoftware.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class TxSoftware
|
public class TxSoftware
|
||||||
{
|
{
|
||||||
@@ -49,9 +49,9 @@ public class TxSoftware
|
|||||||
// Data/Configurations/TxSoftwareConfiguration.cs
|
// Data/Configurations/TxSoftwareConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class TxSoftwareConfiguration : IEntityTypeConfiguration<TxSoftware>
|
public class TxSoftwareConfiguration : IEntityTypeConfiguration<TxSoftware>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Models/TestScenario.cs
|
// Models/TestScenario.cs
|
||||||
namespace WCTDataMiner.Models;
|
namespace Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
public class TestScenario
|
public class TestScenario
|
||||||
{
|
{
|
||||||
@@ -110,9 +110,9 @@ public class TestScenario
|
|||||||
// Data/Configurations/TestScenarioConfiguration.cs
|
// Data/Configurations/TestScenarioConfiguration.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data.Configurations;
|
namespace Gpulse.WCT.DataAnalyzer.Data.Configurations;
|
||||||
|
|
||||||
public class TestScenarioConfiguration : IEntityTypeConfiguration<TestScenario>
|
public class TestScenarioConfiguration : IEntityTypeConfiguration<TestScenario>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Data Model: WCTDataMiner
|
# Data Model: Gpulse.WCT.DataAnalyzer
|
||||||
|
|
||||||
> WCTDataMiner 数据库模型规格,采用维度表设计,消除数据冗余
|
> Gpulse.WCT.DataAnalyzer 数据库模型规格,采用维度表设计,消除数据冗余
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -189,9 +189,9 @@ public async Task SoftDeleteAsync(Guid id)
|
|||||||
```csharp
|
```csharp
|
||||||
// Data/WctMinerDbContext.cs
|
// Data/WctMinerDbContext.cs
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using WCTDataMiner.Models;
|
using Gpulse.WCT.DataAnalyzer.Models;
|
||||||
|
|
||||||
namespace WCTDataMiner.Data;
|
namespace Gpulse.WCT.DataAnalyzer.Data;
|
||||||
|
|
||||||
public class WctMinerDbContext : DbContext
|
public class WctMinerDbContext : DbContext
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user