import request from '@/utils/request'

export function getWarehouseList(query) {
  return request({
    url: '/inm/warehouse/',
    method: 'get',
    params: query
  })
}
export function createWarehouse(data) {
  return request({
    url: '/inm/warehouse/',
    method: 'post',
    data
  })
}
export function updateWarehouse(id, data) {
  return request({
    url: `/inm/warehouse/${id}/`,
    method: 'put',
    data
  })
}
export function deleteWarehouse(id, data) {
  return request({
    url: `/inm/warehouse/${id}/`,
    method: 'delete',
    data
  })
}
