import api from '@/utils/api' export function login(data) { return api({ url: '/user/login', method: 'post', data }) } export function logout() { return api({ url: '/user/logout', method: 'post' }) }