import client from './client'

export function getReviewQueue(periodId) {
  return client.get('/scores/review-queue', { params: { periodId } })
}

export function getMyResult(periodId) {
  return client.get('/scores/my', { params: { periodId } })
}

export function getHistory() {
  return client.get('/scores/history')
}

export function submitSelfScore(data) {
  return client.post('/scores/self', data)
}

export function submitFinalScore(data) {
  return client.post('/scores/final', data)
}

export function publishResult(periodId) {
  return client.post('/scores/publish', { periodId })
}
