/**
 * 龙虎榜类型枚举
 */
export enum LeaderboardType {
  DAILY = 'DAILY',      // 日榜
  WEEKLY = 'WEEKLY',    // 周榜
  MONTHLY = 'MONTHLY',  // 月榜
}

export const LeaderboardTypeLabels: Record<LeaderboardType, string> = {
  [LeaderboardType.DAILY]: '日榜',
  [LeaderboardType.WEEKLY]: '周榜',
  [LeaderboardType.MONTHLY]: '月榜',
};

/**
 * 验证是否为有效的榜单类型
 */
export function isValidLeaderboardType(value: string): value is LeaderboardType {
  return Object.values(LeaderboardType).includes(value as LeaderboardType);
}
