{"size": 3770, "ext": "js", "max_stars_repo_path": "src/services/account.js", "max_stars_repo_name": "282979950/ems-front-end", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/services/account.js", "max_issues_repo_name": "282979950/ems-front-end", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/services/account.js", "max_forks_repo_name": "282979950/ems-front-end", "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": 17.2935779817, "max_line_length": 60, "alphanum_fraction": 0.5872679045}
import { request } from '../utils/request';

/**
 * 表具入库
 */
export async function queryEntryMeter(params) {
  return request('/api/entryMeter/listData.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function deleteEntryMeter(params) {
  return request('/api/entryMeter/delete.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function addEntryMeter(params) {
  return request('/api/entryMeter/add.do', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function editEntryMeter(params) {
  return request('/api/entryMeter/edit.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function searchEntryMeter(params) {
  return request('/api/entryMeter/search.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function getAllMeterTypes() {
  return request('/api/entryMeter/getAllMeterTypes.do', {
    method: 'POST'
  });
}

export async function getMeterByMeterCode(params) {
  return request('/api/entryMeter/getMeterByMeterCode.do', {
    method: 'POST',
    body: {
      ...params
    }
  });
}

/**
 * 用户建档
 */
export async function queryCreateArchive(params) {
  return request('/api/createArchive/listData.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function addArchive(params) {
  return request('/api/createArchive/add.do', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deleteArchive(params) {
  return request('/api/createArchive/delete.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function editArchive(params) {
  return request('/api/createArchive/edit.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function searchCreateArchive(params) {
  return request('/api/createArchive/search.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

/**
 * 用户建档
 */
export async function queryInstallMeter(params) {
  return request('/api/installMeter/listData.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function installMeter(params) {
  return request('/api/installMeter/edit.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function editAccount(params) {
  return request('/api/account/edit.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function searchInstallMeter(params) {
  return request('/api/installMeter/search.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

/**
 * 用户开户
 */
export async function queryAccount(params) {
  return request('/api/account/listData.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function createAccount(params) {
  return request('/api/account/createAccount.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function bindCard(params) {
  return request('/api/account/bindCard.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function searchCreateAccount(params) {
  return request('/api/account/search.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function initCard(params) {
  return request('/api/account/initCard.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function getOrderPayment(params) {
  return request('/api/gasPrice/calAmount.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}

export async function checkFreeGasFlag(params) {
  return request('/api/account/checkFreeGasFlag.do', {
    method: 'POST',
    body: {
      ...params
    },
  });
}
