package com.lesingle.creation.dto.department;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 创建部门 DTO
 */
@Data
@Schema(description = "创建部门请求")
public class CreateDepartmentDTO {

    @NotBlank(message = "部门名称不能为空")
    @Schema(description = "部门名称")
    private String name;

    @NotBlank(message = "部门编码不能为空")
    @Schema(description = "部门编码")
    private String code;

    @Schema(description = "父部门 ID")
    private Long parentId;

    @Schema(description = "部门描述")
    private String description;

    @Schema(description = "排序")
    private Integer sort = 0;
}
