/**
 * 测试查询工厂类 - 专门用于生成测试查询参数
 */
export class TestQueryFactory {
  /**
   * 创建省份查询参数
   */
  static createProvincesQuery(overrides: any = {}): any {
    return {
      page: 1,
      pageSize: 50,
      ...overrides
    };
  }

  /**
   * 创建城市查询参数
   */
  static createCitiesQuery(provinceId: number, overrides: any = {}): any {
    return {
      provinceId,
      page: 1,
      pageSize: 50,
      ...overrides
    };
  }

  /**
   * 创建区县查询参数
   */
  static createDistrictsQuery(cityId: number, overrides: any = {}): any {
    return {
      cityId,
      page: 1,
      pageSize: 50,
      ...overrides
    };
  }

  /**
   * 创建树形结构查询参数
   */
  static createTreeQuery(overrides: any = {}): any {
    return {
      ...overrides
    };
  }

  /**
   * 创建层级树形结构查询参数
   */
  static createTreeByLevelQuery(level: number, overrides: any = {}): any {
    return {
      ...overrides
    };
  }

  /**
   * 创建子树查询参数
   */
  static createSubTreeQuery(id: number, overrides: any = {}): any {
    return {
      ...overrides
    };
  }

  /**
   * 创建区域路径查询参数
   */
  static createAreaPathQuery(id: number, overrides: any = {}): any {
    return {
      ...overrides
    };
  }

  /**
   * 创建分页查询参数
   */
  static createPaginationQuery(page: number = 1, pageSize: number = 50, overrides: any = {}): any {
    return {
      page,
      pageSize,
      ...overrides
    };
  }
}