|  |  |  | 
|---|
|  |  |  | // @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', { | 
|---|
|  |  |  | 
|---|
|  |  |  | /** 此处后端没有提供注释 POST /api/User/CreateRole */ | 
|---|
|  |  |  | export async function createRole(body: API.CreateOrUpdateRoleInput, options?: API.RequestConfig) { | 
|---|
|  |  |  | return request<string>('/api/User/CreateRole', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: body, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 创建临时访问令牌 POST /api/User/CreateTempToken */ | 
|---|
|  |  |  | export async function createTempToken(body: API.CreateTempTokenInput, options?: API.RequestConfig) { | 
|---|
|  |  |  | return request<string>('/api/User/CreateTempToken', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 获取全部用户下拉列表 POST /api/User/GetUserAllList */ | 
|---|
|  |  |  | export async function getUserAllList(body: API.QueryUserPageInput, options?: API.RequestConfig) { | 
|---|
|  |  |  | return request<API.UserListOutput[]>('/api/User/GetUserAllList', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: body, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 获取客户余额信息 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', { | 
|---|