# UpdateLogbookDTO.java

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

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

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;

    /**
     * DTO：Update Logbook
     *
     * @author yyt
     * 2023/3/18
     */
    @Data
    public class UpdateLogbookDTO {

        @Range(min = 0, max = 2,message = "the priority must in [0:Normal, 1:Urgent, 2:Critical]")
        private Integer priority;

        @NotNull(message = "the category must not be null")
        private Integer category;

        @Range(min = 0, max = 4,message = "the mood must in [0:Happy, 1:Pleasant, 2:Neutral, 3:Concerned, 4:Angry]")
        private Integer mood;

        @Length(max = 10, message = "the room max length is 10")
        private String room;

        @Length(max = 100, message = "the customer max length is 100")
        private String customer;

        @NotBlank(message = "the content must not be blank")
        private String content;

        private Long checkinDate;

    }