30 lines
773 B
C#
30 lines
773 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace QYZH.InteractiveMagazine.Models.Base
|
|||
|
|
{
|
|||
|
|
public class MoveInput
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 要移动节点ID (必须)
|
|||
|
|
/// </summary>
|
|||
|
|
[Required]
|
|||
|
|
public long SourceId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 目标父节点ID (0表示移动到根节点)
|
|||
|
|
/// </summary>
|
|||
|
|
public long TargetParentId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 在目标父节点下的插入位置 (可选,从0开始,null表示追加到末尾)
|
|||
|
|
/// </summary>
|
|||
|
|
[Range(0, int.MaxValue)]
|
|||
|
|
public int? Position { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|