package com.yhy.module.core.controller.admin.resource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Schema(description = "拖动节点请求")
@Data
public class DragNodeReqVO {

    @Schema(description = "被拖动的节点ID", required = true, example = "1")
    @NotNull(message = "被拖动的节点ID不能为空")
    private Long dragNodeId;

    @Schema(description = "目标节点ID", required = true, example = "2")
    @NotNull(message = "目标节点ID不能为空")
    private Long targetNodeId;

    @Schema(description = "位置：before(目标节点前), after(目标节点后)", required = true, example = "before")
    @NotBlank(message = "位置不能为空")
    private String position;
}
