# UpdateDepartmentPermissionConfigDTO.java

    package cloud.wconnect.workperformance.pojo.dto.schedule;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO：Update Department Permission Config
     *
     * @author yyt
     * 2023/7/1
     */
    @Data
    public class UpdateDepartmentPermissionConfigDTO {

        /**
         * 权限类型（1：可读，2：可改）
         */
        @NotNull(message = "the permissionType must not be null")
        @Range(min = 1, max = 2, message = "the permissionType must in [1：read，2：write]")
        private Integer permissionType;

        /**
         * 目标类型（0：角色，1：用户组，2：用户）
         */
        @NotNull(message = "the targetType must not be null")
        @Range(min = 0, max = 2, message = "the targetType must in [0：role，1：user group，2：user]")
        private Integer targetType;

        /**
         * 目标 id
         */
        @NotNull(message = "the targetId must not be null")
        private Integer targetId;

    }