feat(m9/T23a): folder sibling reorder (ReorderFolderAsync + command + handler)

This commit is contained in:
Joseph Doherty
2026-06-18 11:00:57 -04:00
parent 0bd5e0986f
commit e3bc19c673
6 changed files with 245 additions and 2 deletions
@@ -1,8 +1,11 @@
using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums;
namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Management;
public record ListTemplateFoldersCommand;
public record CreateTemplateFolderCommand(string Name, int? ParentFolderId);
public record RenameTemplateFolderCommand(int FolderId, string NewName);
public record MoveTemplateFolderCommand(int FolderId, int? NewParentFolderId);
public record ReorderTemplateFolderCommand(int FolderId, ReorderDirection Direction);
public record DeleteTemplateFolderCommand(int FolderId);
public record MoveTemplateToFolderCommand(int TemplateId, int? NewFolderId);
@@ -0,0 +1,16 @@
namespace ZB.MOM.WW.ScadaBridge.Commons.Types.Enums;
/// <summary>
/// Direction for a sibling reorder operation. Ordering is ascending by
/// <c>SortOrder</c>, so <see cref="Up"/> moves an item toward a lower sort
/// order (earlier in the list) and <see cref="Down"/> toward a higher sort
/// order (later in the list).
/// </summary>
public enum ReorderDirection
{
/// <summary>Move toward a lower sort order (swap with the previous sibling).</summary>
Up,
/// <summary>Move toward a higher sort order (swap with the next sibling).</summary>
Down
}