docs: 同步项目重命名后的架构文档
This commit is contained in:
@@ -77,7 +77,7 @@ dotnet run clean --all --confirm
|
||||
// Commands/ParseCommand.cs
|
||||
using System.CommandLine;
|
||||
|
||||
namespace WCTDataMiner.Commands;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Commands;
|
||||
|
||||
public class ParseCommand : Command
|
||||
{
|
||||
@@ -139,7 +139,7 @@ public class ParseCommand : Command
|
||||
using System.CommandLine;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using WCTDataMiner.Commands;
|
||||
using Gpulse.WCT.DataAnalyzer.Commands;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
|
||||
@@ -153,7 +153,7 @@ builder.Services.AddDatabaseServices(builder.Configuration);
|
||||
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();
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
```csharp
|
||||
// Data/IDbContextFactory.cs
|
||||
using WCTDataMiner.Data;
|
||||
using Gpulse.WCT.DataAnalyzer.Data;
|
||||
|
||||
namespace WCTDataMiner.Data;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Data;
|
||||
|
||||
public interface IDbContextFactory
|
||||
{
|
||||
@@ -27,7 +27,7 @@ public interface IDbContextFactory
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace WCTDataMiner.Data;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Data;
|
||||
|
||||
public class DbContextFactory : IDbContextFactory
|
||||
{
|
||||
@@ -96,9 +96,9 @@ public class DbContextFactory : IDbContextFactory
|
||||
```csharp
|
||||
// Extensions/ServiceCollectionExtensions.cs
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using WCTDataMiner.Data;
|
||||
using Gpulse.WCT.DataAnalyzer.Data;
|
||||
|
||||
namespace WCTDataMiner.Extensions;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Extensions;
|
||||
|
||||
public static class ServiceCollectionExtensions
|
||||
{
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
```csharp
|
||||
// Parsers/FileNameParser.cs
|
||||
using System.Globalization;
|
||||
using WCTDataMiner.Services;
|
||||
using Gpulse.WCT.DataAnalyzer.Services;
|
||||
|
||||
namespace WCTDataMiner.Parsers;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Parsers;
|
||||
|
||||
public class FileNameParser
|
||||
{
|
||||
|
||||
@@ -102,9 +102,9 @@ private static readonly Regex FodPattern = new(
|
||||
```csharp
|
||||
// Parsers/PlossParser.cs
|
||||
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>
|
||||
{
|
||||
|
||||
@@ -53,9 +53,9 @@ private static readonly Regex QfodPattern = new(
|
||||
```csharp
|
||||
// Parsers/QfodParser.cs
|
||||
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>
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
```csharp
|
||||
// Parsers/IParser.cs
|
||||
namespace WCTDataMiner.Parsers;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Parsers;
|
||||
|
||||
public interface IParser<TRecord>
|
||||
{
|
||||
|
||||
@@ -67,11 +67,11 @@ sequenceDiagram
|
||||
// Services/ParseService.cs
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Serilog;
|
||||
using WCTDataMiner.Data;
|
||||
using WCTDataMiner.Models;
|
||||
using WCTDataMiner.Parsers;
|
||||
using Gpulse.WCT.DataAnalyzer.Data;
|
||||
using Gpulse.WCT.DataAnalyzer.Models;
|
||||
using Gpulse.WCT.DataAnalyzer.Parsers;
|
||||
|
||||
namespace WCTDataMiner.Services;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Services;
|
||||
|
||||
public class ParseService
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Architecture: WCTDataMiner
|
||||
# Architecture: Gpulse.WCT.DataAnalyzer
|
||||
|
||||
> 无线充电 FOD(异物检测)日志数据采集系统,从日志文件中解析 Qfod 和 Ploss 数据并存储到数据库
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ graph TD
|
||||
## 5. 目录结构
|
||||
|
||||
```
|
||||
src/WCTDataMiner/
|
||||
src/Gpulse.WCT.DataAnalyzer/
|
||||
├── Parsers/
|
||||
│ ├── IParser.cs
|
||||
│ ├── QfodParser.cs
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"WCTDataMiner": "Debug"
|
||||
"Gpulse.WCT.DataAnalyzer": "Debug"
|
||||
}
|
||||
},
|
||||
"Paths": {
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
```csharp
|
||||
// Configuration/AppSettings.cs
|
||||
namespace WCTDataMiner.Configuration;
|
||||
namespace Gpulse.WCT.DataAnalyzer.Configuration;
|
||||
|
||||
public class AppSettings
|
||||
{
|
||||
@@ -77,7 +77,7 @@ public class PathSettings
|
||||
// Program.cs 配置加载部分
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using WCTDataMiner.Configuration;
|
||||
using Gpulse.WCT.DataAnalyzer.Configuration;
|
||||
|
||||
var builder = Host.CreateDefaultBuilder(args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user