text: import request from '@/utils/request'
  export function fetchList(parentId,params) {
    return request({
      url:'/rm/productCategory/list/'+parentId,
      method:'get',
      params:params
    })
  }
  export function deleteProductCate(id) {
    return request({
      url:'/rm/productCategory/delete/'+id,
      method:'get'
    })
  }
  
  export function createProductCate(data) {
    return request({
      url:'/rm/productCategory/create',
      method:'post',
      data:data
    })
  }
  
  export function updateProductCate(id,data) {
    return request({
      url:'/rm/productCategory/update/'+id,
      method:'post',
      data:data
    })
  }
  
  export function getProductCate(id) {
    return request({
      url:'/rm/productCategory/'+id,
      method:'get',
    })
  }
  
  export function updateShowStatus(data) {
    return request({
      url:'/rm/productCategory/update/showStatus',
      method:'post',
      data:data
    })
  }
  
  export function updateNavStatus(data) {
    return request({
      url:'/rm/productCategory/update/navStatus',
      method:'post',
      data:data
    })
  }
  
  export function fetchListWithChildren() {
    return request({
      url:'/rm/productCategory/list/withChildren',
      method:'get'
    })
  }
  