调整 .gitignore 以适配 backends 目录结构

将 MiGu.Server 相关忽略规则迁移至 backends/MiGu.Server,并新增对 .tmp-build* 和 /.cursor/rules 的忽略,优化敏感数据与临时文件的管理。
This commit is contained in:
ArtoriasWu
2026-06-22 08:55:55 +08:00
parent 45f0261ed7
commit 87629a8537
46 changed files with 10 additions and 3 deletions
@@ -1,17 +0,0 @@
namespace MiGu.Server.Configs;
public record FaultReportPolicy(bool Enabled, List<string> EmailTo);
public record AutoRepairPolicy(bool Enabled, int CooldownSec);
public record VehicleMaintenancePolicy(
double LowBatteryThreshold,
double CriticalBatteryThreshold,
FaultReportPolicy FaultReport,
AutoRepairPolicy AutoRepair)
{
public static VehicleMaintenancePolicy Default() => new(
LowBatteryThreshold: 0.3,
CriticalBatteryThreshold: 0.15,
FaultReport: new FaultReportPolicy(true, new List<string> { "ops@example.com" }),
AutoRepair: new AutoRepairPolicy(false, 600));
}