import request from '@/utils/request'
import { postForm } from '@/utils/legacyRequest'

const headers = { isToken: false }

export function listReport(query) {
  return postForm('/risk/report/list', query, { headers })
}

export function getReport(reportId) {
  return request({
    url: '/risk/report/' + reportId,
    method: 'get',
    headers
  })
}

export function addReport(data) {
  return postForm('/risk/report/add', data, { headers })
}

export function updateReport(data) {
  return postForm('/risk/report/edit', data, { headers })
}

export function delReport(reportId) {
  return postForm('/risk/report/remove', { ids: reportId }, { headers })
}
