text: import request from '@/utils/request'
  
  // 查询attr列表
  export function listAttr(query) {
      return request({
          url: '/goshop_pms/attr/list',
          method: 'get',
          params: query
      })
  }
  
  // 查询attr详细
  export function getAttr (id) {
      return request({
          url: '/goshop_pms/attr/edit?id='+id,
          method: 'get'
      })
  }
  
  
  // 新增attr
  export function addAttr(data) {
      return request({
          url: '/goshop_pms/attr/add',
          method: 'post',
          data: data
      })
  }
  
  // 修改attr
  export function updateAttr(data) {
      return request({
          url: '/goshop_pms/attr/edit',
          method: 'post',
          data: data
      })
  }
  
  // 删除attr
  export function delAttr(ids) {
      return request({
          url: '/goshop_pms/attr/delete',
          method: 'delete',
          data:{ids:ids}
      })
  }
  
  