| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 绑定微信小程序用户信息 POST /api/user/auth/bindWxmpUserInfo */ |
| | | export async function bindWxmpUserInfo( |
| | | body: API.BindWxmpUserInfoCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.LoginCommandCallback>('/api/user/auth/bindWxmpUserInfo', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 更换手机号 POST /api/user/auth/changePhoneNumber */ |
| | | export async function changePhoneNumber( |
| | | body: API.ChangePhoneNumberCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/user/auth/changePhoneNumber', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取阿里云OSS授权信息 GET /api/user/auth/getAliyunOSSAcs */ |
| | | export async function getAliyunOSSAcs( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询个人用户登录信息 GET /api/user/auth/getPersonalLoginInfo */ |
| | | export async function getPersonalLoginInfo( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetPersonalLoginInfoParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetPersonalLoginInfoQueryResult>('/api/user/auth/getPersonalLoginInfo', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 密码登录 POST /api/user/auth/passwordLogin */ |
| | | export async function passwordLogin(body: API.PasswordLoginCommand, options?: API.RequestConfig) { |
| | | return request<API.PasswordLoginCommandCallback>('/api/user/auth/passwordLogin', { |
| | | return request<API.LoginCommandCallback>('/api/user/auth/passwordLogin', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 注册个人账号 POST /api/user/auth/registerPersonalUser */ |
| | | export async function registerPersonalUser( |
| | | body: API.RegisterPersonalUserCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/user/auth/registerPersonalUser', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 发送登录或注册短信 POST /api/user/auth/sendLoginOrRegisterVerifyCode */ |
| | | export async function sendLoginOrRegisterVerifyCode( |
| | | body: API.SendLoginOrRegisterVerifyCodeCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/auth/sendLoginOrRegisterVerifyCode', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 短信登录 POST /api/user/auth/smsLogin */ |
| | | export async function smsLogin(body: API.SmsLoginCommand, options?: API.RequestConfig) { |
| | | return request<API.LoginCommandCallback>('/api/user/auth/smsLogin', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 发送更换手机号短信 POST /api/user/auth/updatePhoneNumberVerifyCode */ |
| | | export async function updatePhoneNumberVerifyCode( |
| | | body: API.UpdatePhoneNumberVerifyCodeCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/auth/updatePhoneNumberVerifyCode', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 微信小程序登录 POST /api/user/auth/wxmpLogin */ |
| | | export async function wxmpLogin(body: API.WxmpLoginCommand, options?: API.RequestConfig) { |
| | | return request<API.LoginCommandCallback>('/api/user/auth/wxmpLogin', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |