Files
Migu2.0/MiGu.Server/Configs/CustomWidget.cs
T
zhaowei.huangandCursor 42978930ca feat: 迁入 MiGu.Server、平台前端与车辆列表 reflection 回退
从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 18:16:34 +08:00

18 lines
554 B
C#

namespace MiGu.Server.Configs;
public record CustomWidget(
string Id, string Name, string SchemaJson, string LayoutJson,
List<string> BindToScopes);
public record CustomWidgetConfig(List<CustomWidget> Items)
{
public static CustomWidgetConfig Default() => new(
Items: new List<CustomWidget>
{
new("widget-call-button", "呼叫按钮",
"{\"fields\":[{\"name\":\"siteId\"}]}",
"{\"x\":0,\"y\":0,\"w\":2,\"h\":1}",
new List<string> { "RCSMonitor" })
});
}