package io.cordys.crm.system.dto.request;

import io.cordys.common.groups.Created;
import io.cordys.common.groups.Updated;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class DepartmentAddRequest {

    @Size(min = 1, max = 255, message = "{department.name.length_range}", groups = {Created.class, Updated.class})
    @NotBlank(message = "{department.name.not_blank}", groups = {Created.class, Updated.class})
    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;


    @Schema(description = "父级id")
    @NotBlank(message = "{department.parent.id.not_blank}")
    private String parentId;
}
