feat: 迁入 MiGu.Server、平台前端与车辆列表 reflection 回退
从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
namespace MiGu.Server.Configs;
|
||||
|
||||
public record ChargePriorityRule(string Id, string Condition, double Weight);
|
||||
|
||||
public record ChargePolicy(
|
||||
bool AllowMidTaskCharge,
|
||||
int IdleChargeAfterSec,
|
||||
List<ChargePriorityRule> Priority)
|
||||
{
|
||||
public static ChargePolicy Default() => new(
|
||||
AllowMidTaskCharge: false,
|
||||
IdleChargeAfterSec: 300,
|
||||
Priority: new List<ChargePriorityRule>
|
||||
{
|
||||
new("CP1", "soc<0.2", 100),
|
||||
new("CP2", "idle>5min", 30)
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user