import request from '@/utils/request'

// 查询score列表
export function listScore(query) {
  return request({
    url: '/score/score/list',
    method: 'get',
    params: query
  })
}

// 查询score详细
export function getScore(id) {
  return request({
    url: '/score/score/' + id,
    method: 'get'
  })
}

// 新增score
export function addScore(data) {
  return request({
    url: '/score/score',
    method: 'post',
    data: data
  })
}

// 修改score
export function updateScore(data) {
  return request({
    url: '/score/score',
    method: 'put',
    data: data
  })
}

// 删除score
export function delScore(id) {
  return request({
    url: '/score/score/' + id,
    method: 'delete'
  })
}
