import request from '@/utils/request'

// 查询部门下拉树结构
export function deptTreeSelect(removeId) {
  return request({
    url: '/system/dept/deptTree',
    method: 'get',
    params:removeId
  })
}

export function handsheDeptTreeSelect() {
  return request({
    url: '/system/dept/deptTree/hangshe',
    method: 'get'
  })
}

// 查询文件
export function getFile(code) {
  return request({
    url: '/file/file/getFile/' + code,
    method: 'get'
  })
}

// 查询机构下拉树结构
export function deptTreeList() {
  return request({
    url: '/system/dept/sysDeptTree',
    method: 'get'
  })
}


export function upload(data,type) {
  return request({
    url: '/file/file/upload',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data: data,
    params:{
      busType: type
    }
  })
}

// 获取当前系统角色信息
export function getRoles() {
  return request({
    url: '/system/role/getRoles',
    method: 'get'
  })
}
