feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图

This commit is contained in:
SunYF
2026-10-28 10:10:17 +08:00
parent 1f10c3091e
commit 4d3c4e2c3a
131 changed files with 18118 additions and 1728 deletions
+12
View File
@@ -68,6 +68,18 @@ func (f AttachmentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value,
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.AttachmentMutation", m)
}
// The BackupRecordFunc type is an adapter to allow the use of ordinary
// function as BackupRecord mutator.
type BackupRecordFunc func(context.Context, *ent.BackupRecordMutation) (ent.Value, error)
// Mutate calls f(ctx, m).
func (f BackupRecordFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
if mv, ok := m.(*ent.BackupRecordMutation); ok {
return f(ctx, mv)
}
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.BackupRecordMutation", m)
}
// The CallPoolFunc type is an adapter to allow the use of ordinary
// function as CallPool mutator.
type CallPoolFunc func(context.Context, *ent.CallPoolMutation) (ent.Value, error)