package org.xyzh.common.dto.system;

import org.xyzh.common.dto.BaseDTO;
import java.util.Date;

/**
 * @description 系统访问统计表
 * @filename TbSysVisitStatistics.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbSysVisitStatistics extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description 统计日期
     */
    private Date statDate;
    
    /**
     * @description 总访问量
     */
    private Integer totalVisits;
    
    /**
     * @description 独立访客数
     */
    private Integer uniqueVisitors;
    
    /**
     * @description 新增用户数
     */
    private Integer newUsers;
    
    /**
     * @description 活跃用户数
     */
    private Integer activeUsers;
    
    /**
     * @description 页面浏览量
     */
    private Integer pageViews;
    
    /**
     * @description 平均访问时长（秒）
     */
    private Integer avgVisitDuration;

    public Date getStatDate() {
        return statDate;
    }

    public void setStatDate(Date statDate) {
        this.statDate = statDate;
    }

    public Integer getTotalVisits() {
        return totalVisits;
    }

    public void setTotalVisits(Integer totalVisits) {
        this.totalVisits = totalVisits;
    }

    public Integer getUniqueVisitors() {
        return uniqueVisitors;
    }

    public void setUniqueVisitors(Integer uniqueVisitors) {
        this.uniqueVisitors = uniqueVisitors;
    }

    public Integer getNewUsers() {
        return newUsers;
    }

    public void setNewUsers(Integer newUsers) {
        this.newUsers = newUsers;
    }

    public Integer getActiveUsers() {
        return activeUsers;
    }

    public void setActiveUsers(Integer activeUsers) {
        this.activeUsers = activeUsers;
    }

    public Integer getPageViews() {
        return pageViews;
    }

    public void setPageViews(Integer pageViews) {
        this.pageViews = pageViews;
    }

    public Integer getAvgVisitDuration() {
        return avgVisitDuration;
    }

    public void setAvgVisitDuration(Integer avgVisitDuration) {
        this.avgVisitDuration = avgVisitDuration;
    }

    @Override
    public String toString() {
        return "TbSysVisitStatistics{" +
                "id=" + getID() +
                ", statDate=" + statDate +
                ", totalVisits=" + totalVisits +
                ", uniqueVisitors=" + uniqueVisitors +
                ", newUsers=" + newUsers +
                ", activeUsers=" + activeUsers +
                ", pageViews=" + pageViews +
                ", avgVisitDuration=" + avgVisitDuration +
                '}';
    }
}
