| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 密码登录 POST /api/user/auth/password-login */ |
| | | export async function authPasswordLogin( |
| | | body: API.AuthPasswordLoginCommand, |
| | | /** 获取阿里云OSS授权信息 GET /api/user/auth/getAliyunOSSAcs */ |
| | | export async function getAliyunOSSAcs( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetAliyunOSSAcsParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.AuthPasswordLoginCallback>('/api/user/auth/password-login', { |
| | | return request<API.GetAliyunOSSAcsQueryResult>('/api/user/auth/getAliyunOSSAcs', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取当前登录用户菜单 GET /api/user/auth/getCurrentLogierMenus */ |
| | | export async function getCurrentLogierMenus( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetCurrentLogierMenusParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetMenusQueryResultItem[]>('/api/user/auth/getCurrentLogierMenus', { |
| | | 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', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |