You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
393 B
TypeScript
16 lines
393 B
TypeScript
import { useAxios } from '@/hooks/web/useAxios'
|
|
import type { UserLoginType } from './types'
|
|
|
|
const { request } = useAxios()
|
|
|
|
export const loginApi = (data: UserLoginType) => {
|
|
return request({ url: '/user/login', method: 'post', data } as AxiosConfig<
|
|
Recordable,
|
|
UserLoginType
|
|
>)
|
|
}
|
|
|
|
export const loginOutApi = () => {
|
|
return request({ url: '/user/loginOut', method: 'get' })
|
|
}
|