spec.js 718 Bytes
Newer Older
张成 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
import request from '@/utils/request'

// 查询规格列表
export function listSpecs(query) {
  return request({
    url: '/system/spec/list',
    method: 'get',
    params: query
  })
}

// 查询规格详细
export function getSpecs(id) {
  return request({
    url: '/system/spec/' + id,
    method: 'get'
  })
}

// 新增规格
export function addSpecs(data) {
  return request({
    url: '/system/spec',
    method: 'post',
    data: data
  })
}

// 修改规格
export function updateSpecs(data) {
  return request({
    url: '/system/spec',
    method: 'put',
    data: data
  })
}

// 删除规格
export function delSpecs(id) {
  return request({
    url: '/system/spec/' + id,
    method: 'delete'
  })
}