import request from '@/utils/request'

// 查询对比规则配置列表
export function listConfiguration(query) {
  return request({
    url: '/system/configuration/list',
    method: 'get',
    params: query
  })
}

// 查询对比规则配置详细
export function getConfiguration(id) {
  return request({
    url: '/system/configuration/' + id,
    method: 'get'
  })
}

// 新增对比规则配置
export function addConfiguration(data) {
  return request({
    url: '/system/configuration',
    method: 'post',
    data: data
  })
}

// 修改对比规则配置
export function updateConfiguration(data) {
  return request({
    url: '/system/configuration/put',
    method: 'post',
    data: data
  })
}

// 删除对比规则配置
export function delConfiguration(id) {
  return request({
    url: '/system/configuration/delete/' + id,
    method: 'get'
  })
}
