mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
843 B
26 lines
843 B
// ==========================================================================
|
|
// ReorderFields.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System.Collections.Generic;
|
|
using Squidex.Infrastructure;
|
|
|
|
namespace Squidex.Domain.Apps.Write.Schemas.Commands
|
|
{
|
|
public sealed class ReorderFields : SchemaAggregateCommand, IValidatable
|
|
{
|
|
public List<long> FieldIds { get; set; }
|
|
|
|
public void Validate(IList<ValidationError> errors)
|
|
{
|
|
if (FieldIds == null)
|
|
{
|
|
errors.Add(new ValidationError("Field ids must be specified.", nameof(FieldIds)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|