gasUser.js 1.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
import request from '@/utils/request'

// 查询燃气用户列表
export function listInfo(query) {
  return request({
    url: '/gasUser/info/list',
    method: 'get',
    params: query
  })
}

// 查询燃气用户列表
export function listInfos(query) {
  return request({
    url: '/gasUser/info/list',
    method: 'get',
    params: query
  })
}
export function gasUserInfoList(query) {
  return request({
    url: '/gasUser/info/gasUserInfoList',
    method: 'get',
    params: query
  })
}

// 查询燃气用户详细
export function getInfo(gasUserId) {
  return request({
    url: '/gasUser/info/' + gasUserId,
    method: 'get'
  })
}

// 新增燃气用户
export function addInfo(data) {
  return request({
    url: '/gasUser/info',
    method: 'post',
    data: data
  })
}

// 修改燃气用户
export function updateInfo(data) {
  return request({
    url: '/gasUser/info',
    method: 'put',
    data: data
  })
}

// 删除燃气用户
export function delInfo(gasUserId) {
  return request({
    url: '/gasUser/info/' + gasUserId,
    method: 'delete'
  })
}

// 导出燃气用户
export function exportInfo(query) {
  return request({
    url: '/gasUser/info/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/gasUser/info/importTemplate',
    method: 'get'
  })
}