wupengfei
2025-02-25 e53e33dd46fdf138c851b10f12cdc00131a8d644
packages/core/src/lifeRechargeServices.ts
@@ -53,6 +53,14 @@
    });
  }
  /** 获取电费充值区域 GET /api/LifePay/GetElectricSupportArea */
  async getElectricSupportArea(options?: RequestConfig) {
    return this.request<ElectricSupportAreaResponse>('/api/LifePay/GetElectricSupportArea', {
      method: 'GET',
      ...(options || {}),
    });
  }
  /** 获取电费面值 GET /api/LifePay/GetElectricParValue */
  async getElectricParValue(options?: RequestConfig) {
    return this.request<ElectricParValueResponse>('/api/LifePay/GetElectricParValue', {
@@ -308,3 +316,34 @@
  /** 退款时间 */
  refundTime?: string;
}
export interface ElectricSupportAreaResponse {
  success?: boolean;
  requestNo?: string;
  partnerId?: string;
  service?: string;
  version?: string;
  protocol?: string;
  context?: string;
  ext?: any;
  code?: string;
  message?: string;
  detail?: string;
  electricAreaList?: ElectricSupportAreaListOutput[];
}
export interface ElectricSupportAreaListOutput {
  childCityList?: ElectricSupportAreaChildCityListOutput[];
  cityName?: string;
  cityParentId?: string;
  ciytId?: string;
  electricType?: string;
  parValue?: string[];
  rate?: number;
}
export interface ElectricSupportAreaChildCityListOutput {
  cityName?: string;
  cityParentId?: string;
  ciytId?: string;
}