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

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

import javax.validation.constraints.NotNull;

/**
 * 交换排序请求 VO
 *
 * @author yihuiyong
 */
@Schema(description = "管理后台 - 交换排序请求 VO")
@Data
public class SwapSortOrderReqVO {

    @Schema(description = "节点1的ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "节点1的ID不能为空")
    private Long nodeId1;

    @Schema(description = "节点2的ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "节点2的ID不能为空")
    private Long nodeId2;
}
