zhengyiming
2025-02-21 6ca7a9741d3d858f00b56637a3b9d086f7892a52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
import { IRequest, BlLifeRechargeServicesOptions } from './types';
 
export interface PhoneMesssageCodeLoginInput {
  /** 手机号 */
  phoneNumber: string;
  /** 验证码 */
  code: string;
}
 
export interface RequestConfig {}
 
export class BlLifeRechargeServices<T extends IRequest> {
  private request: T;
  constructor({ request }: BlLifeRechargeServicesOptions<T>) {
    this.request = request;
  }
 
  private async lifePayPhoneMesssageCodeLogin(
    body: PhoneMesssageCodeLoginInput,
    options?: RequestConfig
  ) {
    return this.request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    });
  }
 
  a() {}
}