# UserDepartmentPermissionDTO.java

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

    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;

    import jakarta.validation.constraints.AssertTrue;

    /**
     * DTO：用户部门权限
     *
     * @author yyt
     * 2023/6/29
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class UserDepartmentPermissionDTO {

        /**
         * 部门 id
         */
        private Integer id;

        /**
         * 部门名称
         */
        private String name;

        /**
         * 可读
         */
        @AssertTrue(message = "the read must be true")
        private Boolean read;

        /**
         * 可改
         */
        @AssertTrue(message = "the write must be true")
        private Boolean write;

    }