package com.template.model.request;

import lombok.Data;

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

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2023-12-04
 */
@Data
public class insertDepartmentRequest {

    /**
     * 父级ID
     */
    @NotNull(message = "父级ID不能为空")
    private Integer parentId;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String name;
}
