从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
namespace MiGu.Server.Configs;
|
|
|
|
public record ScenarioTemplate(string Id, string Name, string Category, string Version, string BaselineJson);
|
|
public record TemplateDslPolicy(bool Enabled, string SchemaVersion);
|
|
public record LowCodePolicy(bool Enabled, string Editor);
|
|
public record TemplateVersionPolicy(int KeepVersions, bool AllowRollback);
|
|
|
|
public record ScenarioTemplateConfig(
|
|
List<ScenarioTemplate> Templates,
|
|
TemplateDslPolicy DslPolicy,
|
|
LowCodePolicy LowCode,
|
|
TemplateVersionPolicy VersionPolicy)
|
|
{
|
|
public static ScenarioTemplateConfig Default() => new(
|
|
Templates: new List<ScenarioTemplate>
|
|
{
|
|
new("tpl-sps", "SPS 物料配送", "SPS", "1.0.0", "{}"),
|
|
new("tpl-pack", "电池 Pack 自动化产线", "BatteryPack", "1.0.0", "{}"),
|
|
new("tpl-loop", "环线运行", "Loop", "1.0.0", "{}"),
|
|
new("tpl-p2p", "点对点柔性搬运", "P2P", "1.0.0", "{}")
|
|
},
|
|
DslPolicy: new TemplateDslPolicy(true, "1"),
|
|
LowCode: new LowCodePolicy(false, "json"),
|
|
VersionPolicy: new TemplateVersionPolicy(10, true));
|
|
}
|