import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/admin/mallClassify/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/admin/mallClassify',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/admin/mallClassify/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/admin/mallClassify/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/admin/mallClassify',
    method: 'put',
    data: obj
  })
}
