| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 生成操作令牌 POST /api/user/user/buildOperatorToken */ |
| | | export async function buildOperatorToken( |
| | | body: API.BuildOperatorTokenCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.BuildOperatorTokenCommandResult>('/api/user/user/buildOperatorToken', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 校验操作令牌 POST /api/user/user/checkOperatorToken */ |
| | | export async function checkOperatorToken( |
| | | body: API.CheckOperatorTokenCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/user/user/checkOperatorToken', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除用户银行卡信息 DELETE /api/user/user/deletePersonalUserBankCard */ |
| | | export async function deletePersonalUserBankCard( |
| | | body: API.DeletePersonalUserBankCardCommand, |
| | |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询运营端用户分页列表数据 POST /api/user/user/getOperationUserInfos */ |
| | | export async function getOperationUserInfos( |
| | | body: API.GetOperationUserInfosQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.PagedListQueryResultGetOperationUserInfosQueryResultItem>( |
| | | '/api/user/user/getOperationUserInfos', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询个人用户银行卡信息 GET /api/user/user/getPersonalUserBankCard */ |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询用户详情 GET /api/user/user/getUser */ |
| | | export async function getUser( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetUserParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetUserQueryResult>('/api/user/user/getUser', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询用户角色列表 GET /api/user/user/getUserInfoRoles */ |
| | | export async function getUserInfoRoles( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询用户分页列表数据 POST /api/user/user/getUsers */ |
| | | export async function getUsers(body: API.GetUsersQuery, options?: API.RequestConfig) { |
| | | return request<API.GetOperationUserInfosQueryResult>('/api/user/user/getUsers', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 重置用户操作密码 POST /api/user/user/resetUserOperatorPasswords */ |
| | | export async function resetUserOperatorPasswords( |
| | | body: API.ResetUserOperatorPasswordsCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/user/user/resetUserOperatorPasswords', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 重置用户密码 POST /api/user/user/resetUserPasswords */ |
| | | export async function resetUserPasswords( |
| | | body: API.ResetUserPasswordsCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/user/user/resetUserPasswords', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 保存用户银行卡信息 POST /api/user/user/savePersonalUserBankCard */ |
| | | export async function savePersonalUserBankCard( |
| | | body: API.SavePersonalUserBankCardCommand, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 保存用户 POST /api/user/user/saveUser */ |
| | | export async function saveUser(body: API.SaveUserCommand, options?: API.RequestConfig) { |
| | | return request<string>('/api/user/user/saveUser', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 发送绑定银行卡短信 POST /api/user/user/sendSavePersonalUserBankCardVerifyCode */ |
| | | export async function sendSavePersonalUserBankCardVerifyCode( |
| | | body: API.SendSavePersonalUserBankCardVerifyCodeCommand, |