import { DailyActiveStats } from '../aggregates/daily-active-stats/daily-active-stats.aggregate';

export interface IDailyActiveStatsRepository {
  /**
   * 保存或更新日活统计
   */
  upsert(stats: DailyActiveStats): Promise<void>;

  /**
   * 按日期查询
   */
  findByDate(day: Date): Promise<DailyActiveStats | null>;

  /**
   * 按日期范围查询
   */
  findByDateRange(startDate: Date, endDate: Date): Promise<DailyActiveStats[]>;
}

export const DAILY_ACTIVE_STATS_REPOSITORY = Symbol('IDailyActiveStatsRepository');
