# LogbookCategoryDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.logbook;

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

    import jakarta.validation.constraints.NotBlank;

    /**
     * DTO: Logbook Category
     *
     * @author yyt
     * 2023/3/23
     */
    @Data
    public class LogbookCategoryDTO {

        /**
         * 分类 id
         */
        private Integer id;

        /**
         * 分类名称
         */
        @NotBlank(message = "the name must not be blank")
        @Length(max = 100, message = "the name max length is 100")
        private String name;

    }