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
| 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;
| }
|
| async lifePayPhoneMesssageCodeLogin(body: PhoneMesssageCodeLoginInput, options?: RequestConfig) {
| return this.request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', {
| method: 'POST',
| headers: {
| 'Content-Type': 'application/json',
| },
| data: body,
| ...(options || {}),
| });
| }
| }
|
|