feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user