| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 批量同步用户余额 POST /api/User/BatchSyncUserAmount */ |
| | | export async function batchSyncUserAmount( |
| | | body: API.BatchSyncUserAmountInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<any>('/api/User/BatchSyncUserAmount', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 新增账号信息 POST /api/User/CreateAccount */ |
| | | export async function createAccount(body: API.CreateAccountInput, options?: API.RequestConfig) { |
| | | return request<string>('/api/User/CreateAccount', { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 获取客户余额信息 GET /api/User/GetUserAmountShow */ |
| | | export async function getUserAmountShow(options?: API.RequestConfig) { |
| | | return request<API.UserAmountShowDto>('/api/User/GetUserAmountShow', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取用户详情 GET /api/User/GetUserDetail */ |
| | | export async function getUserDetail( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 同步用户 POST /api/User/SyncUser */ |
| | | export async function syncUser(body: API.SyncUserDto, options?: API.RequestConfig) { |
| | | return request<string>('/api/User/SyncUser', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 更新账号信息 POST /api/User/UpdateAccount */ |
| | | export async function updateAccount(body: API.UpdateAccountInput, options?: API.RequestConfig) { |
| | | return request<number>('/api/User/UpdateAccount', { |