wupengfei
3 天以前 e2cbcd64dd60014d82bd898ae51fd827e01e9c18
packages/services/apiV2/user.ts
@@ -2,22 +2,49 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 查询运营端用户分页列表数据 POST /api/user/user/getOperationUserInfos */
export async function getOperationUserInfos(
  body: API.GetOperationUserInfosQuery,
/** 生成操作令牌 POST /api/user/user/buildOperatorToken */
export async function buildOperatorToken(
  body: API.BuildOperatorTokenCommand,
  options?: API.RequestConfig
) {
  return request<API.PagedListQueryResultGetOperationUserInfosQueryResultItem>(
    '/api/user/user/getOperationUserInfos',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
  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,
  options?: API.RequestConfig
) {
  return request<number>('/api/user/user/deletePersonalUserBankCard', {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 查询个人用户银行卡信息 GET /api/user/user/getPersonalUserBankCard */
@@ -30,8 +57,6 @@
    method: 'GET',
    params: {
      ...params,
      request: undefined,
      ...params['request'],
    },
    ...(options || {}),
  });
@@ -106,6 +131,39 @@
  );
}
/** 查询个人钱包余额分页列表 POST /api/user/user/getPersonalUserWalletBalances */
export async function getPersonalUserWalletBalances(
  body: API.GetPersonalUserWalletBalancesQuery,
  options?: API.RequestConfig
) {
  return request<API.GetPersonalUserWalletBalancesQueryResult>(
    '/api/user/user/getPersonalUserWalletBalances',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 查询用户详情 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默认没有生成对象)
@@ -121,6 +179,48 @@
  });
}
/** 查询用户分页列表数据 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,
@@ -136,6 +236,33 @@
  });
}
/** 保存用户 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,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/user/sendSavePersonalUserBankCardVerifyCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 设置用户信息角色 PUT /api/user/user/setUserInfoRoles */
export async function setUserInfoRoles(
  body: API.SetUserInfoRolesCommand,