errorCode.js 1022 Bytes
Newer Older
sunhongwei's avatar
sunhongwei 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 45 46 47 48 49 50 51 52 53 54
import request from '@/utils/request'

// 创建错误码
export function createErrorCode(data) {
  return request({
    url: '/system/error-code/create',
    method: 'post',
    data: data
  })
}

// 更新错误码
export function updateErrorCode(data) {
  return request({
    url: '/system/error-code/update',
    method: 'put',
    data: data
  })
}

// 删除错误码
export function deleteErrorCode(id) {
  return request({
    url: '/system/error-code/delete?id=' + id,
    method: 'delete'
  })
}

// 获得错误码
export function getErrorCode(id) {
  return request({
    url: '/system/error-code/get?id=' + id,
    method: 'get'
  })
}

// 获得错误码分页
export function getErrorCodePage(query) {
  return request({
    url: '/system/error-code/page',
    method: 'get',
    params: query
  })
}

// 导出错误码 Excel
export function exportErrorCodeExcel(query) {
  return request({
    url: '/system/error-code/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}