wupengfei
8 天以前 a04b2d215ec4290e3acf55a0bdab56f1d1fbb551
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 获取预览数据 GET /api/Common/GetPreViewCache */
export async function getPreViewCache(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetPreViewCacheParams,
  options?: API.RequestConfig
) {
  return request<string>('/api/Common/GetPreViewCache', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 第三方银行卡预留手机号验证 发送验证码 POST /api/Common/SendBankCardCertificationVerificationCode */
export async function sendBankCardCertificationVerificationCode(
  body: API.SendBankCardCertificationVerificationCodeInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Common/SendBankCardCertificationVerificationCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 发送邮箱验证码 POST /api/Common/SendEmailVerificationCode */
export async function sendEmailVerificationCode(
  body: API.SendEmailVerificationCodeByBusinessTypeInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Common/SendEmailVerificationCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 第三方手机号验证 发送验证码 POST /api/Common/SendPhoneCertificationVerificationCode */
export async function sendPhoneCertificationVerificationCode(
  body: API.SendPhoneCertificationVerificationCodeInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Common/SendPhoneCertificationVerificationCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 发送验证码 POST /api/Common/SendVerificationCode */
export async function sendVerificationCode(
  body: API.SendPhoneVerificationCodeByBusinessTypeInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Common/SendVerificationCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 写入预览数据 POST /api/Common/SetPreViewCache */
export async function setPreViewCache(body: API.SetPreViewCacheInput, options?: API.RequestConfig) {
  return request<string>('/api/Common/SetPreViewCache', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 身份证OCR识别 识别身份证正反面信息。此接口按照调用次数单独计费 POST /api/Common/UserCredentialVerifyOcrIDCard */
export async function userCredentialVerifyOcrIDCard(
  body: API.UserCredentialVerifyOcrIDCardInput,
  options?: API.RequestConfig
) {
  return request<API.UserCredentialVerifyOcrIDCardResponse>(
    '/api/Common/UserCredentialVerifyOcrIDCard',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}