import { request } from '@/api/_service'

const BASE = 'device_management/device_check/device_check_items_log/'

function params (method, data = {}) { return { method, platform: 'background', ...data } }

export function getList (data) {
  return request({ url: BASE + 'list', method: 'get', params: params('device_management_device_check_device_check_items_log_list', data) })
}

export function getDetails (data) {
  return request({ url: BASE + 'details', method: 'get', params: params('device_management_device_check_device_check_items_log_details', data) })
}

export function getDetailsList (data) {
  return request({ url: BASE + 'details_list', method: 'get', params: params('device_management_device_check_device_check_items_log_details_list', data) })
}

export function createExportTask (data) {
  return request({ url: BASE + 'export', method: 'post', data: params('device_management_device_check_device_check_items_log_export', data) })
}
