/*
 * Author: gn
 */

import request from '@/router/axios'

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

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

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

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

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