| | |
| | | }); |
| | | } |
| | | |
| | | /** 创建临时访问令牌 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, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询系统信息 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', |
| | |
| | | |
| | | /** 此处后端没有提供注释 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', |
| | |
| | | |
| | | /** 密码登录 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', |
| | |
| | | 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', |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 双因子登录-第一步账号密码登录 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, |
| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | 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', |