wupengfei
2025-02-24 fe5fc18b6b1810a61df6ed7d94957f449ca05488
packages/components/src/utils/types.ts
@@ -3,11 +3,17 @@
export interface IRequestOptions extends AxiosRequestConfig {}
export interface IRequest {
  <T = any>(url: string, opts: IRequestOptions): Promise<AxiosResponse<T>>;
  <T = any>(url: string, opts: IRequestOptions): Promise<T>;
}
export type BlLifeRechargeServicesOptions<T extends IRequest> = {
  request: T;
};
export type BlLifeRechargeOptions<T extends IRequest> = BlLifeRechargeServicesOptions<T> & {};
export type BlLifeRechargeAccountModelOptions = {
  userId?: string;
  phoneNumber?: string;
};
export type BlLifeRechargeOptions<T extends IRequest> = BlLifeRechargeServicesOptions<T> &
  BlLifeRechargeAccountModelOptions & {};