import request from '@/utils/request'


export function getVerify() {
  return request({
    url: '/sys/getVerify',
    method: 'get',
    responseType: 'blob'
  })
}
export function login(data) {
  return request({
    url: '/sys/user/login',
    method: 'post',
    data
  })
}
export function getInfo(token) {
  return request({
    url: '/sys/user',
    method: 'get',
    params: {
      token
    }
  })
}

export function logout() {
  return request({
    url: '/sys/user/logout',
    method: 'get'
  })
}

// 获取菜单权限
export function getMenu() {
  return request({
    url: '/sys/home',
    method: 'get'
  })
}

// 获取角色列表
export function getRoleList() {
  return request({
    url: '/sys/roles',
    method: 'post'
  })
}


