# GroupStatisticsReviewQuery.java

    package cloud.wconnect.rateshop.pojo.query.reviewanalysis;

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

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

    /**
     * 统计评论数据的查询对象
     *
     * @author lichen
     * @date 2024/12/27
     */
    @Data
    public class GroupStatisticsReviewQuery {

        /**
         * 统计类型
         */
        @NotNull(message = "the type cannot be null")
        @Range(min = 1, max = 11, message = "the type must between in [1-11]")
        private Integer type;

        /**
         * 开始日期
         */
        @NotBlank(message = "the startDate cannot be blank")
        private String startDate;

        /**
         * 结束日期
         */
        @NotBlank(message = "the startDate cannot be blank")
        private String endDate;

        /**
         * 统计维度
         */
        @Range(min = 1, max = 3, message = "the statisticsDimension must between in [1:month 2:week 3:day]")
        private Integer statisticsDimension;

    }