import request from '@/utils/request'

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

export function getInfo() { // token
  return request({
    url: '/api/v1/system/user_info',
    method: 'post'
    // params: { token }
  })
}

export function logout() {
  return request({
    url: '/api/v1/system/user/logout',
    method: 'post'
  })
}
