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',
@@ -383,6 +403,51 @@
  });
}
/** 双因子登录-第一步账号密码登录 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',
    },
    data: body,
    ...(options || {}),
  });
}
/** 解绑用户邮箱 POST /api/Account/UnbindingUserEmail */
export async function unbindingUserEmail(
  body: API.UnbindingUserEmailInput,
@@ -433,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',
@@ -448,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',
@@ -478,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',