zhengyiming
2025-02-19 c8724a3d88607516fe95ffb91e4b52c99405d063
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 获取用户是否添加银行账户 GET /api/Withdraw/CheckUserAccountIsSet */
export async function checkUserAccountIsSet(options?: API.RequestConfig) {
  return request<boolean>('/api/Withdraw/CheckUserAccountIsSet', {
    method: 'GET',
    ...(options || {}),
  });
}
 
/** 创建或修改用户的账户信息 POST /api/Withdraw/CreateOrEditWithDrawAccount */
export async function createOrEditWithDrawAccount(
  body: API.CreateWithdrawAccountInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Withdraw/CreateOrEditWithDrawAccount', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 创建用户的提款申请 POST /api/Withdraw/CreateUserWithdrawAccount */
export async function createUserWithdrawAccount(
  body: API.CreateUserWithdrawInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Withdraw/CreateUserWithdrawAccount', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 获取当前用户的银行账号 GET /api/Withdraw/GetUserAccount */
export async function getUserAccount(options?: API.RequestConfig) {
  return request<API.GetUserAccountDto>('/api/Withdraw/GetUserAccount', {
    method: 'GET',
    ...(options || {}),
  });
}
 
/** 获取用户的 POST /api/Withdraw/GetUserWithdrawList */
export async function getUserWithdrawList(
  body: API.GetUserWithdrawInput,
  options?: API.RequestConfig
) {
  return request<API.UserWithdrawDtoPageOutput>('/api/Withdraw/GetUserWithdrawList', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 驳回提现申请 POST /api/Withdraw/RejectUserWithdraw */
export async function rejectUserWithdraw(
  body: API.SetUserWithdrawStatusInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Withdraw/RejectUserWithdraw', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 提现完成 POST /api/Withdraw/SetUserWithdrawComplete */
export async function setUserWithdrawComplete(
  body: API.SetUserWithdrawComplete,
  options?: API.RequestConfig
) {
  return request<number>('/api/Withdraw/SetUserWithdrawComplete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}