/**
 * 用户列表项响应 DTO
 */
export class UserListItemDto {
  accountId!: string;
  accountSequence!: string;
  avatar!: string | null;
  nickname!: string | null;
  phoneNumberMasked!: string | null;
  personalAdoptions!: number;
  selfPrePlantingPortions!: number;
  teamPrePlantingPortions!: number;
  teamAddresses!: number;
  teamAdoptions!: number;
  provincialAdoptions!: {
    count: number;
    percentage: number;
  };
  cityAdoptions!: {
    count: number;
    percentage: number;
  };
  referrerId!: string | null;
  ranking!: number | null;
  status!: 'active' | 'frozen' | 'deactivated';
  isOnline!: boolean;
}

/**
 * 用户列表响应 DTO
 */
export class UserListResponseDto {
  items!: UserListItemDto[];
  total!: number;
  page!: number;
  pageSize!: number;
  totalPages!: number;
}

/**
 * 用户详情响应 DTO
 */
export class UserDetailDto extends UserListItemDto {
  kycStatus!: string;
  registeredAt!: string;
  lastActiveAt!: string | null;
}
