package com.skr.mdm.bean.qo.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author nfq
 * @date 2022-11-15 14:16
 */
@Data
@ApiModel(value = "部门移动对象")
public class DepartmentMoveQO implements Serializable {

    private static final long serialVersionUID = -8072059710225757363L;

    @ApiModelProperty(value = "部门ID")
    private Integer id;

    @NotNull(message = "上级部门不能为空")
    @ApiModelProperty(value = "上级部门")
    private Integer parentId;

    @NotNull(message = "排序权重不能为空")
    @ApiModelProperty(value = "排序权重")
    private Integer weight;

    @NotNull(message = "移动节点不能为空")
    @ApiModelProperty(value = "是否是移动的节点（0：否 1：是）")
    private Integer isMove;
}
