|  |  |  | 
|---|
|  |  |  | // @ts-ignore | 
|---|
|  |  |  | import { request } from '@/utils/request'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 根据绑定邮箱判断用户是否已存在 POST /api/Account/AnyUserByBindEmail */ | 
|---|
|  |  |  | export async function anyUserByBindEmail( | 
|---|
|  |  |  | body: API.AnyUserByBindEmailInput, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<boolean>('/api/Account/AnyUserByBindEmail', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: body, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 根据手机号判断用户是否已存在 POST /api/Account/AnyUserByPhoneNumber */ | 
|---|
|  |  |  | export async function anyUserByPhoneNumber( | 
|---|
|  |  |  | body: API.AnyUserByPhoneNumberInput, | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 绑定用户账户邮箱 POST /api/Account/BindUserEmail */ | 
|---|
|  |  |  | export async function bindUserEmail(body: API.BindUserEmailInput, options?: API.RequestConfig) { | 
|---|
|  |  |  | return request<number>('/api/Account/BindUserEmail', { | 
|---|
|  |  |  | /** C端验证码登录 POST /api/Account/CClientPhoneMesssageCodeLogin */ | 
|---|
|  |  |  | export async function cClientPhoneMesssageCodeLogin( | 
|---|
|  |  |  | body: API.PhoneMesssageCodeLoginInput, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<API.IdentityModelTokenCacheItem>('/api/Account/CClientPhoneMesssageCodeLogin', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: body, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** C端手机号验证码注册注册 POST /api/Account/CClientPhoneMesssageCodeRegister */ | 
|---|
|  |  |  | export async function cClientPhoneMesssageCodeRegister( | 
|---|
|  |  |  | body: API.PhoneMesssageCodeRegisterInput, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<number>('/api/Account/CClientPhoneMesssageCodeRegister', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 管理员创建用户 POST /api/Account/CreateUserForAdmin */ | 
|---|
|  |  |  | export async function createUserForAdmin( | 
|---|
|  |  |  | body: API.CreateUserForAdminInput, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<number>('/api/Account/CreateUserForAdmin', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: body, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 生成账号 POST /api/Account/GenerateUserName */ | 
|---|
|  |  |  | export async function generateUserName( | 
|---|
|  |  |  | body: API.GenerateUserNameInput, | 
|---|
|  |  |  | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<API.WxMiniAppIndentityInfo>('/api/Account/GetWxIndentity', { | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ...params, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 获取学社公众号文章 GET /api/Account/GetWxPublishWriting */ | 
|---|
|  |  |  | export async function getWxPublishWriting(options?: API.RequestConfig) { | 
|---|
|  |  |  | return request<API.InformationShowListDtoPageOutput>('/api/Account/GetWxPublishWriting', { | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 判断用户绑定邮箱是否重复 GET /api/Account/IsRepeatByBindEmail */ | 
|---|
|  |  |  | export async function isRepeatByBindEmail( | 
|---|
|  |  |  | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) | 
|---|
|  |  |  | params: API.APIisRepeatByBindEmailParams, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<boolean>('/api/Account/IsRepeatByBindEmail', { | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ...params, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 企业名称是否重复 GET /api/Account/IsRepeatByIsRepeatByEnterpriseName */ | 
|---|
|  |  |  | export async function isRepeatByIsRepeatByEnterpriseName( | 
|---|
|  |  |  | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) | 
|---|
|  |  |  | params: API.APIisRepeatByIsRepeatByEnterpriseNameParams, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<boolean>('/api/Account/IsRepeatByIsRepeatByEnterpriseName', { | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ...params, | 
|---|
|  |  |  | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<number>('/api/Account/SendPhoneMesssageCode', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: body, | 
|---|
|  |  |  | ...(options || {}), | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 解绑用户邮箱 POST /api/Account/UnbindingUserEmail */ | 
|---|
|  |  |  | export async function unbindingUserEmail( | 
|---|
|  |  |  | body: API.UnbindingUserEmailInput, | 
|---|
|  |  |  | options?: API.RequestConfig | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return request<number>('/api/Account/UnbindingUserEmail', { | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | headers: { | 
|---|
|  |  |  | 'Content-Type': 'application/json', | 
|---|