{"size": 1470, "ext": "js", "max_stars_repo_path": "src/api/machineCheck.js", "max_stars_repo_name": "wuhengqiang100/sjzhc_web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/machineCheck.js", "max_issues_repo_name": "wuhengqiang100/sjzhc_web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/machineCheck.js", "max_forks_repo_name": "wuhengqiang100/sjzhc_web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.3421052632, "max_line_length": 42, "alphanum_fraction": 0.5979591837}
import request from '@/utils/request'

export function fetchList() {
  return request({
    url: '/machine/check',
    method: 'get'
    // baseURL: "http://127.0.0.1:8088"
  })
}
export function updateMachineCheck(data) {
  return request({
    url: '/machine/check/save',
    method: 'post',
    data
    // baseURL: "http://127.0.0.1:8088"
  })
}
export function fetchMachineTypeList() {
  return request({
    url: '/machine/checkType/listOption',
    method: 'get'
    // baseURL: "http://127.0.0.1:8088"
  })
}

export function updateUseFlag(id) {
  return request({
    url: '/machine/check/updateUseFlag',
    method: 'post',
    params: { id }
    // baseURL: "http://127.0.0.1:8088"
  })
}

export function fetchMachine(id) {
  return request({
    url: '/machine/check/detail',
    method: 'get',
    params: { id }
  })
}

export function fetchPv(pv) {
  return request({
    url: '/machine/check/pv',
    method: 'get',
    params: { pv }
  })
}

export function createMachine(data) {
  return request({
    url: '/machine/check/create',
    method: 'post',
    data
    // baseURL: "http://127.0.0.1:8088"
  })
}

export function updateMachine(data) {
  return request({
    url: '/machine/check/update',
    method: 'post',
    data
    // baseURL: "http://127.0.0.1:8088"
  })
}
export function deleteMachine(id) {
  return request({
    url: '/machine/check/delete',
    method: 'post',
    params: { id }
    // baseURL: "http://127.0.0.1:8088"
  })
}
