|  |  |  | 
|---|
|  |  |  | // @ts-ignore | 
|---|
|  |  |  | import { request } from '@/utils/request'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 绑定手机号 POST /api/user/auth/bindPhoneNumber */ | 
|---|
|  |  |  | export async function bindPhoneNumber( | 
|---|
|  |  |  | body: API.BindPhoneNumberCommand, | 
|---|
|  |  |  | /** 绑定微信小程序用户信息 POST /api/user/auth/bindWxmpUserInfo */ | 
|---|
|  |  |  | export async function bindWxmpUserInfo( | 
|---|
|  |  |  | body: API.BindWxmpUserInfoCommand, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<boolean>('/api/user/auth/bindPhoneNumber', { | 
|---|
|  |  |  | 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', | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 查询企业用户登录信息 GET /api/user/auth/getEnterpriseLoginInfo */ | 
|---|
|  |  |  | export async function getEnterpriseLoginInfo( | 
|---|
|  |  |  | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) | 
|---|
|  |  |  | params: API.APIgetEnterpriseLoginInfoParams, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<API.GetEnterpriseLoginInfoQueryResult>('/api/user/auth/getEnterpriseLoginInfo', { | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ...params, | 
|---|
|  |  |  | request: undefined, | 
|---|
|  |  |  | ...params['request'], | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 查询个人用户登录信息 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.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<API.LoginCommandCallback>('/api/user/auth/registerPersonalUser', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json-patch+json', | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 发送更换手机号短信 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', { | 
|---|