text: import request from '@/utils/request'
  
  export function listGoods(query) {
    return request({
      url: '/goods/list',
      method: 'get',
      params: query
    })
  }
  
  export function deleteGoods(data) {
    return request({
      url: '/goods/delete',
      method: 'post',
      data
    })
  }
  
  export function publishGoods(data) {
    return request({
      url: '/goods/create',
      method: 'post',
      data
    })
  }
  
  export function detailGoods(id) {
    return request({
      url: '/goods/detail',
      method: 'get',
      params: { id }
    })
  }
  
  export function editGoods(data) {
    return request({
      url: '/goods/update',
      method: 'post',
      data
    })
  }
  
  export function listCatAndBrand() {
    return request({
      url: '/goods/catAndBrand',
      method: 'get'
    })
  }
  export function updatePrice(data) {
    return request({
      url: '/goods/updatePrice',
      method: 'post',
      data
    })
  }
  export function changeShow(id, isShow) {
    return request({
      url: '/goods/changeShow',
      method: 'post',
      params: { id, isShow }
    })
  }
  