export class GetDirectReferralsQuery {
  constructor(
    public readonly accountSequence: string,  // 格式: D + YYMMDD + 5位序号
    public readonly limit: number = 50,
    public readonly offset: number = 0,
  ) {}
}

export interface DirectReferralResult {
  userId: string;
  accountSequence: string;  // 格式: D + YYMMDD + 5位序号
  referralCode: string;
  personalPlantingCount: number;  // 个人认种量
  teamPlantingCount: number;      // 团队认种量
  directReferralCount: number;    // 直推人数（用于判断是否有下级）
  joinedAt: Date;
}

export interface DirectReferralsResult {
  referrals: DirectReferralResult[];
  total: number;
  hasMore: boolean;
}
