import { defAxios as request } from '@/utils/http'

export const login = (data) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}

export const refreshToken = () => {
  return request({
    url: '/auth/refreshToken',
    method: 'post'
  })
}

export function getMenu() {
  return request({
    url: '/index/getMenuList',
    method: 'GET'
  })
}
