import micro_request from '@/utils/micro_request'

const basePath = process.env.VUE_APP_AdminPath
export default {
  // 获取列表
  getList(query) {
    return micro_request.postRequest(basePath, 'Dept', 'GetList', query)
  },
  getTree(query) {
    return micro_request.postRequest(basePath, 'Dept', 'GetDeptTree', query)
  },
  doAdd(query) {
    return micro_request.postRequest(basePath, 'Dept', 'Create', query)
  },
  doEdit(query) {
    return micro_request.postRequest(basePath, 'Dept', 'UpdateById', query)
  },
  doDelete(query) {
    return micro_request.postRequest(basePath, 'Dept', 'DeleteById', query)
  },
}
