{"size": 1034, "ext": "js", "max_stars_repo_path": "src/api/equipment.js", "max_stars_repo_name": "sad156/houtaixiangmu", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/equipment.js", "max_issues_repo_name": "sad156/houtaixiangmu", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/equipment.js", "max_forks_repo_name": "sad156/houtaixiangmu", "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": 16.6774193548, "max_line_length": 41, "alphanum_fraction": 0.6112185687}
import request from '@/utils/request'

// 获取所有设备信息
export function list(query) {
  return request({
    url: '/hly/equipment/list',
    method: 'get',
    params: query
  })
}

// 添加设备
export function addEquipment(data) {
  return request({
    url: '/hly/equipment/addEquipment',
    method: 'post',
    params: { ...data }
  })
}

// 删除设备
export function delEquipment(data) {
  return request({
    url: '/hly/equipment/delEquipment',
    method: 'post',
    params: { ...data }
  })
}

// 编辑设备
export function editEqu(data) {
  return request({
    url: '/hly/equipment/editEqu',
    method: 'post',
    params: { ...data }
  })
}

// 通过ID查询设备
export function queryEquipByid(data) {
  return request({
    url: '/hly/equipment/queryEquipByid',
    method: 'get',
    params: { ...data }
  })
}

// 查询所有设备名称
export function queryname(data) {
  return request({
    url: '/hly/equipment/queryname',
    method: 'get'
  })
}

export function getname(data) {
  return request({
    url: '/hly/fliter/getname',
    method: 'get'
  })
}
