zhengyiming
2 天以前 64eb1c2ebfc25f11f5757a0eef04de230fa8fa15
src/services/api/Account.ts
@@ -131,6 +131,18 @@
  });
}
/** 创建临时访问令牌 POST /api/Account/CreateTempToken */
export async function createTempToken(body: API.CreateTempTokenInput, options?: API.RequestConfig) {
  return request<string>('/api/Account/CreateTempToken', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 管理员创建用户 POST /api/Account/CreateUserForAdmin */
export async function createUserForAdmin(
  body: API.CreateUserForAdminInput,
@@ -207,9 +219,17 @@
  });
}
/** 查询系统信息 GET /api/Account/GetSystemInfo */
export async function getSystemInfo(options?: API.RequestConfig) {
  return request<API.GetSystemInfoOutput>('/api/Account/GetSystemInfo', {
    method: 'GET',
    ...(options || {}),
  });
}
/** 电子签登录 POST /api/Account/GetTokenForUserSign */
export async function getTokenForUserSign(body: API.AccessRequestDto, options?: API.RequestConfig) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/GetTokenForUserSign', {
  return request<API.IdentityModelToken>('/api/Account/GetTokenForUserSign', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -221,7 +241,7 @@
/** 此处后端没有提供注释 POST /api/Account/GetTokenForWeb */
export async function getTokenForWeb(body: API.AccessRequestDto, options?: API.RequestConfig) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/GetTokenForWeb', {
  return request<API.IdentityModelToken>('/api/Account/GetTokenForWeb', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -301,7 +321,7 @@
/** 密码登录 POST /api/Account/PasswordLogin */
export async function passwordLogin(body: API.PasswordLoginInput, options?: API.RequestConfig) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/PasswordLogin', {
  return request<API.IdentityModelToken>('/api/Account/PasswordLogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -316,7 +336,7 @@
  body: API.PhoneMesssageCodeLoginInput,
  options?: API.RequestConfig
) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/PhoneMesssageCodeLogin', {
  return request<API.IdentityModelToken>('/api/Account/PhoneMesssageCodeLogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -332,6 +352,18 @@
  options?: API.RequestConfig
) {
  return request<number>('/api/Account/PhoneMesssageCodeRegister', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 政务端一系统配置一重置密码 POST /api/Account/ResetPassword */
export async function resetPassword(body: API.ResetPasswordBaseInput, options?: API.RequestConfig) {
  return request<number>('/api/Account/ResetPassword', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -362,6 +394,51 @@
  options?: API.RequestConfig
) {
  return request<number>('/api/Account/SendPhoneMesssageCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 双因子登录-第一步账号密码登录 POST /api/Account/TwoFactorLoginPassword */
export async function twoFactorLoginPassword(
  body: API.TwoFactorLoginPasswordInput,
  options?: API.RequestConfig
) {
  return request<API.TwoFactorLoginPasswordOutput>('/api/Account/TwoFactorLoginPassword', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 双因子第二步-发送验证码 POST /api/Account/TwoFactorLoginSendVerificationCode */
export async function twoFactorLoginSendVerificationCode(
  body: API.TwoFactorLoginSendVerificationCodeInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Account/TwoFactorLoginSendVerificationCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 双因子第三步-验证码登录 POST /api/Account/TwoFactorLoginSms */
export async function twoFactorLoginSms(
  body: API.TwoFactorLoginSmsInput,
  options?: API.RequestConfig
) {
  return request<API.IdentityModelToken>('/api/Account/TwoFactorLoginSms', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -421,7 +498,7 @@
  body: API.WxMiniAppPhoneLoginInput,
  options?: API.RequestConfig
) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/WxMiniAppPhoneAuthLogin', {
  return request<API.IdentityModelToken>('/api/Account/WxMiniAppPhoneAuthLogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -436,7 +513,7 @@
  body: API.WxMiniAppPhoneAuthLoginFromScanInput,
  options?: API.RequestConfig
) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/WxMiniAppPhoneAuthLoginFromScan', {
  return request<API.IdentityModelToken>('/api/Account/WxMiniAppPhoneAuthLoginFromScan', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -466,7 +543,7 @@
  body: API.WxMiniAppUserLoginFromScanInput,
  options?: API.RequestConfig
) {
  return request<API.IdentityModelTokenCacheItem>('/api/Account/WxMiniAppUserLoginFromScan', {
  return request<API.IdentityModelToken>('/api/Account/WxMiniAppUserLoginFromScan', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
@@ -536,7 +613,7 @@
}
/** 此处后端没有提供注释 POST /api/accountAuth/ResetPassword */
export async function resetPassword(body: API.ResetPasswordDto, options?: API.RequestConfig) {
export async function resetPassword_2(body: API.ResetPasswordDto, options?: API.RequestConfig) {
  return request<any>('/api/accountAuth/ResetPassword', {
    method: 'POST',
    headers: {