# LogbookNotification.java

    package cloud.wconnect.frontoffice.entity.logbook;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * Logbook Notification
     * </p>
     *
     * @author yyt
     * @since 2023-03-18
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class LogbookNotification implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         * 主键id
         */
        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        /**
         * 资产id
         */
        private Integer propertyId;

        /**
         * 分类
         */
        private Integer category;

        /**
         * 主题
         */
        private String subject;

        /**
         * 通知类型（0：邮件）
         */
        private Integer notifyType;

        /**
         * 需要通知的操作，多个中间逗号隔开（0：created 1:resolved 2：comment）
         */
        private String notifyOperation;

        /**
         * 状态（false：关闭，true：开启）
         */
        private Boolean status;

        /**
         * 操作人
         */
        private Integer updateBy;

        /**
         * 操作时间
         */
        private Long updateTime;

        /**
         * category all 选项
         */
        public static final int OPTION_ALL = 100;

        public static final int OPERATION_CREATED = 0;

        public static final int OPERATION_RESOLVED = 1;

        public static final int OPERATION_COMMENT = 2;

    }