From 87629a8537fb9ddd54eef3396f82593d930c62c3 Mon Sep 17 00:00:00 2001 From: ArtoriasWu Date: Mon, 22 Jun 2026 08:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20.gitignore=20=E4=BB=A5?= =?UTF-8?q?=E9=80=82=E9=85=8D=20backends=20=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 MiGu.Server 相关忽略规则迁移至 backends/MiGu.Server,并新增对 .tmp-build* 和 /.cursor/rules 的忽略,优化敏感数据与临时文件的管理。 --- .gitignore | 13 ++++++++++--- MiGu.Server.sln => backends/MiGu.Server.sln | 0 {MiGu.Server => backends/MiGu.Server}/.gitignore | 0 .../MiGu.Server}/Auth/InternalTokenStore.cs | 0 .../MiGu.Server}/Auth/JwtIssuer.cs | 0 .../MiGu.Server}/Auth/PageCatalog.cs | 0 .../MiGu.Server}/Auth/RbacModels.cs | 0 .../MiGu.Server}/Auth/RbacStore.cs | 0 .../MiGu.Server}/Configs/ChargePolicy.cs | 0 .../MiGu.Server}/Configs/ConfigStore.cs | 0 .../MiGu.Server}/Configs/CustomWidget.cs | 0 .../MiGu.Server}/Configs/DeploymentCatalog.cs | 0 .../MiGu.Server}/Configs/DeploymentProfile.cs | 0 .../MiGu.Server}/Configs/DeviceManagementConfig.cs | 0 .../MiGu.Server}/Configs/EffectivePermissions.cs | 0 .../MiGu.Server}/Configs/ExternalIntegrations.cs | 0 .../MiGu.Server}/Configs/FleetLifecycleConfig.cs | 0 .../MiGu.Server}/Configs/LocationManagement.cs | 0 .../MiGu.Server}/Configs/OpsAuditStore.cs | 0 .../MiGu.Server}/Configs/OpsConfig.cs | 0 .../MiGu.Server}/Configs/RoutingPolicy.cs | 0 .../MiGu.Server}/Configs/ScenarioTemplateConfig.cs | 0 .../MiGu.Server}/Configs/SystemConfig.cs | 0 .../MiGu.Server}/Configs/TaskAllocationPolicy.cs | 0 .../MiGu.Server}/Configs/TrafficRule.cs | 0 .../Configs/VehicleMaintenancePolicy.cs | 0 .../MiGu.Server}/Controllers/AuthController.cs | 0 .../MiGu.Server}/Controllers/ConfigController.cs | 0 .../MiGu.Server}/Controllers/HealthController.cs | 0 .../MiGu.Server}/Controllers/LogsController.cs | 0 .../Controllers/MapsContentController.cs | 0 .../MiGu.Server}/Controllers/OpsController.cs | 0 .../Controllers/ProjectionController.cs | 0 .../MiGu.Server}/Controllers/RbacController.cs | 0 .../MiGu.Server}/Controllers/WizardController.cs | 0 .../MiGu.Server}/Infra/AtomicFile.cs | 0 .../MiGu.Server}/Launcher/SimpleLiteBuildSync.cs | 0 .../MiGu.Server}/Launcher/SimpleLiteLauncher.cs | 0 .../MiGu.Server}/Launcher/SimpleLiteOptions.cs | 0 .../MiGu.Server}/MiGu.Server.csproj | 0 {MiGu.Server => backends/MiGu.Server}/Program.cs | 0 .../MiGu.Server}/Properties/launchSettings.json | 0 {MiGu.Server => backends/MiGu.Server}/README.md | 0 .../MiGu.Server}/appsettings.Development.json | 0 .../MiGu.Server}/appsettings.json | 0 .../MiGu.Server}/build-and-run.bat | 0 46 files changed, 10 insertions(+), 3 deletions(-) rename MiGu.Server.sln => backends/MiGu.Server.sln (100%) rename {MiGu.Server => backends/MiGu.Server}/.gitignore (100%) rename {MiGu.Server => backends/MiGu.Server}/Auth/InternalTokenStore.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Auth/JwtIssuer.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Auth/PageCatalog.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Auth/RbacModels.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Auth/RbacStore.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/ChargePolicy.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/ConfigStore.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/CustomWidget.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/DeploymentCatalog.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/DeploymentProfile.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/DeviceManagementConfig.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/EffectivePermissions.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/ExternalIntegrations.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/FleetLifecycleConfig.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/LocationManagement.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/OpsAuditStore.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/OpsConfig.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/RoutingPolicy.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/ScenarioTemplateConfig.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/SystemConfig.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/TaskAllocationPolicy.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/TrafficRule.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Configs/VehicleMaintenancePolicy.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/AuthController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/ConfigController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/HealthController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/LogsController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/MapsContentController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/OpsController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/ProjectionController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/RbacController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Controllers/WizardController.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Infra/AtomicFile.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Launcher/SimpleLiteBuildSync.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Launcher/SimpleLiteLauncher.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Launcher/SimpleLiteOptions.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/MiGu.Server.csproj (100%) rename {MiGu.Server => backends/MiGu.Server}/Program.cs (100%) rename {MiGu.Server => backends/MiGu.Server}/Properties/launchSettings.json (100%) rename {MiGu.Server => backends/MiGu.Server}/README.md (100%) rename {MiGu.Server => backends/MiGu.Server}/appsettings.Development.json (100%) rename {MiGu.Server => backends/MiGu.Server}/appsettings.json (100%) rename {MiGu.Server => backends/MiGu.Server}/build-and-run.bat (100%) diff --git a/.gitignore b/.gitignore index 05c537c..31294d8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,16 +8,23 @@ *.pdb # MiGu.Server 运行时数据(含敏感 token) -MiGu.Server/data/*.json -MiGu.Server/data/.internal-token +backends/MiGu.Server/data/*.json +backends/MiGu.Server/data/*.db +backends/MiGu.Server/data/*.db-shm +backends/MiGu.Server/data/*.db-wal +backends/MiGu.Server/data/.internal-token # 前端构建产物 -MiGu.Server/wwwroot/ +backends/MiGu.Server/wwwroot/ frontends/apps/simple-platform-vue/auto-imports.d.ts +# 临时构建输出 +.tmp-build*/ + # IDE / OS .vs/ .idea/ *.swp Thumbs.db Desktop.ini +/.cursor/rules diff --git a/MiGu.Server.sln b/backends/MiGu.Server.sln similarity index 100% rename from MiGu.Server.sln rename to backends/MiGu.Server.sln diff --git a/MiGu.Server/.gitignore b/backends/MiGu.Server/.gitignore similarity index 100% rename from MiGu.Server/.gitignore rename to backends/MiGu.Server/.gitignore diff --git a/MiGu.Server/Auth/InternalTokenStore.cs b/backends/MiGu.Server/Auth/InternalTokenStore.cs similarity index 100% rename from MiGu.Server/Auth/InternalTokenStore.cs rename to backends/MiGu.Server/Auth/InternalTokenStore.cs diff --git a/MiGu.Server/Auth/JwtIssuer.cs b/backends/MiGu.Server/Auth/JwtIssuer.cs similarity index 100% rename from MiGu.Server/Auth/JwtIssuer.cs rename to backends/MiGu.Server/Auth/JwtIssuer.cs diff --git a/MiGu.Server/Auth/PageCatalog.cs b/backends/MiGu.Server/Auth/PageCatalog.cs similarity index 100% rename from MiGu.Server/Auth/PageCatalog.cs rename to backends/MiGu.Server/Auth/PageCatalog.cs diff --git a/MiGu.Server/Auth/RbacModels.cs b/backends/MiGu.Server/Auth/RbacModels.cs similarity index 100% rename from MiGu.Server/Auth/RbacModels.cs rename to backends/MiGu.Server/Auth/RbacModels.cs diff --git a/MiGu.Server/Auth/RbacStore.cs b/backends/MiGu.Server/Auth/RbacStore.cs similarity index 100% rename from MiGu.Server/Auth/RbacStore.cs rename to backends/MiGu.Server/Auth/RbacStore.cs diff --git a/MiGu.Server/Configs/ChargePolicy.cs b/backends/MiGu.Server/Configs/ChargePolicy.cs similarity index 100% rename from MiGu.Server/Configs/ChargePolicy.cs rename to backends/MiGu.Server/Configs/ChargePolicy.cs diff --git a/MiGu.Server/Configs/ConfigStore.cs b/backends/MiGu.Server/Configs/ConfigStore.cs similarity index 100% rename from MiGu.Server/Configs/ConfigStore.cs rename to backends/MiGu.Server/Configs/ConfigStore.cs diff --git a/MiGu.Server/Configs/CustomWidget.cs b/backends/MiGu.Server/Configs/CustomWidget.cs similarity index 100% rename from MiGu.Server/Configs/CustomWidget.cs rename to backends/MiGu.Server/Configs/CustomWidget.cs diff --git a/MiGu.Server/Configs/DeploymentCatalog.cs b/backends/MiGu.Server/Configs/DeploymentCatalog.cs similarity index 100% rename from MiGu.Server/Configs/DeploymentCatalog.cs rename to backends/MiGu.Server/Configs/DeploymentCatalog.cs diff --git a/MiGu.Server/Configs/DeploymentProfile.cs b/backends/MiGu.Server/Configs/DeploymentProfile.cs similarity index 100% rename from MiGu.Server/Configs/DeploymentProfile.cs rename to backends/MiGu.Server/Configs/DeploymentProfile.cs diff --git a/MiGu.Server/Configs/DeviceManagementConfig.cs b/backends/MiGu.Server/Configs/DeviceManagementConfig.cs similarity index 100% rename from MiGu.Server/Configs/DeviceManagementConfig.cs rename to backends/MiGu.Server/Configs/DeviceManagementConfig.cs diff --git a/MiGu.Server/Configs/EffectivePermissions.cs b/backends/MiGu.Server/Configs/EffectivePermissions.cs similarity index 100% rename from MiGu.Server/Configs/EffectivePermissions.cs rename to backends/MiGu.Server/Configs/EffectivePermissions.cs diff --git a/MiGu.Server/Configs/ExternalIntegrations.cs b/backends/MiGu.Server/Configs/ExternalIntegrations.cs similarity index 100% rename from MiGu.Server/Configs/ExternalIntegrations.cs rename to backends/MiGu.Server/Configs/ExternalIntegrations.cs diff --git a/MiGu.Server/Configs/FleetLifecycleConfig.cs b/backends/MiGu.Server/Configs/FleetLifecycleConfig.cs similarity index 100% rename from MiGu.Server/Configs/FleetLifecycleConfig.cs rename to backends/MiGu.Server/Configs/FleetLifecycleConfig.cs diff --git a/MiGu.Server/Configs/LocationManagement.cs b/backends/MiGu.Server/Configs/LocationManagement.cs similarity index 100% rename from MiGu.Server/Configs/LocationManagement.cs rename to backends/MiGu.Server/Configs/LocationManagement.cs diff --git a/MiGu.Server/Configs/OpsAuditStore.cs b/backends/MiGu.Server/Configs/OpsAuditStore.cs similarity index 100% rename from MiGu.Server/Configs/OpsAuditStore.cs rename to backends/MiGu.Server/Configs/OpsAuditStore.cs diff --git a/MiGu.Server/Configs/OpsConfig.cs b/backends/MiGu.Server/Configs/OpsConfig.cs similarity index 100% rename from MiGu.Server/Configs/OpsConfig.cs rename to backends/MiGu.Server/Configs/OpsConfig.cs diff --git a/MiGu.Server/Configs/RoutingPolicy.cs b/backends/MiGu.Server/Configs/RoutingPolicy.cs similarity index 100% rename from MiGu.Server/Configs/RoutingPolicy.cs rename to backends/MiGu.Server/Configs/RoutingPolicy.cs diff --git a/MiGu.Server/Configs/ScenarioTemplateConfig.cs b/backends/MiGu.Server/Configs/ScenarioTemplateConfig.cs similarity index 100% rename from MiGu.Server/Configs/ScenarioTemplateConfig.cs rename to backends/MiGu.Server/Configs/ScenarioTemplateConfig.cs diff --git a/MiGu.Server/Configs/SystemConfig.cs b/backends/MiGu.Server/Configs/SystemConfig.cs similarity index 100% rename from MiGu.Server/Configs/SystemConfig.cs rename to backends/MiGu.Server/Configs/SystemConfig.cs diff --git a/MiGu.Server/Configs/TaskAllocationPolicy.cs b/backends/MiGu.Server/Configs/TaskAllocationPolicy.cs similarity index 100% rename from MiGu.Server/Configs/TaskAllocationPolicy.cs rename to backends/MiGu.Server/Configs/TaskAllocationPolicy.cs diff --git a/MiGu.Server/Configs/TrafficRule.cs b/backends/MiGu.Server/Configs/TrafficRule.cs similarity index 100% rename from MiGu.Server/Configs/TrafficRule.cs rename to backends/MiGu.Server/Configs/TrafficRule.cs diff --git a/MiGu.Server/Configs/VehicleMaintenancePolicy.cs b/backends/MiGu.Server/Configs/VehicleMaintenancePolicy.cs similarity index 100% rename from MiGu.Server/Configs/VehicleMaintenancePolicy.cs rename to backends/MiGu.Server/Configs/VehicleMaintenancePolicy.cs diff --git a/MiGu.Server/Controllers/AuthController.cs b/backends/MiGu.Server/Controllers/AuthController.cs similarity index 100% rename from MiGu.Server/Controllers/AuthController.cs rename to backends/MiGu.Server/Controllers/AuthController.cs diff --git a/MiGu.Server/Controllers/ConfigController.cs b/backends/MiGu.Server/Controllers/ConfigController.cs similarity index 100% rename from MiGu.Server/Controllers/ConfigController.cs rename to backends/MiGu.Server/Controllers/ConfigController.cs diff --git a/MiGu.Server/Controllers/HealthController.cs b/backends/MiGu.Server/Controllers/HealthController.cs similarity index 100% rename from MiGu.Server/Controllers/HealthController.cs rename to backends/MiGu.Server/Controllers/HealthController.cs diff --git a/MiGu.Server/Controllers/LogsController.cs b/backends/MiGu.Server/Controllers/LogsController.cs similarity index 100% rename from MiGu.Server/Controllers/LogsController.cs rename to backends/MiGu.Server/Controllers/LogsController.cs diff --git a/MiGu.Server/Controllers/MapsContentController.cs b/backends/MiGu.Server/Controllers/MapsContentController.cs similarity index 100% rename from MiGu.Server/Controllers/MapsContentController.cs rename to backends/MiGu.Server/Controllers/MapsContentController.cs diff --git a/MiGu.Server/Controllers/OpsController.cs b/backends/MiGu.Server/Controllers/OpsController.cs similarity index 100% rename from MiGu.Server/Controllers/OpsController.cs rename to backends/MiGu.Server/Controllers/OpsController.cs diff --git a/MiGu.Server/Controllers/ProjectionController.cs b/backends/MiGu.Server/Controllers/ProjectionController.cs similarity index 100% rename from MiGu.Server/Controllers/ProjectionController.cs rename to backends/MiGu.Server/Controllers/ProjectionController.cs diff --git a/MiGu.Server/Controllers/RbacController.cs b/backends/MiGu.Server/Controllers/RbacController.cs similarity index 100% rename from MiGu.Server/Controllers/RbacController.cs rename to backends/MiGu.Server/Controllers/RbacController.cs diff --git a/MiGu.Server/Controllers/WizardController.cs b/backends/MiGu.Server/Controllers/WizardController.cs similarity index 100% rename from MiGu.Server/Controllers/WizardController.cs rename to backends/MiGu.Server/Controllers/WizardController.cs diff --git a/MiGu.Server/Infra/AtomicFile.cs b/backends/MiGu.Server/Infra/AtomicFile.cs similarity index 100% rename from MiGu.Server/Infra/AtomicFile.cs rename to backends/MiGu.Server/Infra/AtomicFile.cs diff --git a/MiGu.Server/Launcher/SimpleLiteBuildSync.cs b/backends/MiGu.Server/Launcher/SimpleLiteBuildSync.cs similarity index 100% rename from MiGu.Server/Launcher/SimpleLiteBuildSync.cs rename to backends/MiGu.Server/Launcher/SimpleLiteBuildSync.cs diff --git a/MiGu.Server/Launcher/SimpleLiteLauncher.cs b/backends/MiGu.Server/Launcher/SimpleLiteLauncher.cs similarity index 100% rename from MiGu.Server/Launcher/SimpleLiteLauncher.cs rename to backends/MiGu.Server/Launcher/SimpleLiteLauncher.cs diff --git a/MiGu.Server/Launcher/SimpleLiteOptions.cs b/backends/MiGu.Server/Launcher/SimpleLiteOptions.cs similarity index 100% rename from MiGu.Server/Launcher/SimpleLiteOptions.cs rename to backends/MiGu.Server/Launcher/SimpleLiteOptions.cs diff --git a/MiGu.Server/MiGu.Server.csproj b/backends/MiGu.Server/MiGu.Server.csproj similarity index 100% rename from MiGu.Server/MiGu.Server.csproj rename to backends/MiGu.Server/MiGu.Server.csproj diff --git a/MiGu.Server/Program.cs b/backends/MiGu.Server/Program.cs similarity index 100% rename from MiGu.Server/Program.cs rename to backends/MiGu.Server/Program.cs diff --git a/MiGu.Server/Properties/launchSettings.json b/backends/MiGu.Server/Properties/launchSettings.json similarity index 100% rename from MiGu.Server/Properties/launchSettings.json rename to backends/MiGu.Server/Properties/launchSettings.json diff --git a/MiGu.Server/README.md b/backends/MiGu.Server/README.md similarity index 100% rename from MiGu.Server/README.md rename to backends/MiGu.Server/README.md diff --git a/MiGu.Server/appsettings.Development.json b/backends/MiGu.Server/appsettings.Development.json similarity index 100% rename from MiGu.Server/appsettings.Development.json rename to backends/MiGu.Server/appsettings.Development.json diff --git a/MiGu.Server/appsettings.json b/backends/MiGu.Server/appsettings.json similarity index 100% rename from MiGu.Server/appsettings.json rename to backends/MiGu.Server/appsettings.json diff --git a/MiGu.Server/build-and-run.bat b/backends/MiGu.Server/build-and-run.bat similarity index 100% rename from MiGu.Server/build-and-run.bat rename to backends/MiGu.Server/build-and-run.bat