/**
 * Copyright © 2020 suxinghua. All rights Reserved.
 */
import {
  mGet,
  mPost
} from "../utils/request/xhr";

// 接口前缀
import { prefix } from "../setting"

//获取油站列表方法
const getStationList = (params) => mGet("/"+prefix+"/getStationInfoList", params);
//获取油枪list方法
const getOilGunList = (params) => mGet("/"+prefix+"/stationOilGunList", params);
//根据code获取openid方法
const getMpOpenId = (params) => mGet("/"+prefix+"/getSessionKeyAndOpenID", params);
//调用后台生成订单方法
const postOrderInfo = (params) => mPost("/"+prefix+"/AddPayOrderInfo", params);
//确认订单信息方法
const confirmOrder = (params) => mGet("/"+prefix+"/getPayOrderList", params);
//聚合支付信息获取方法
const getJhPayInfo = (params) => mPost("/"+prefix+"/getJhPayInfo", params);
//保存app用户信息
const saveAppUserInfo = (params) => mPost("/"+prefix+"/addAppUserInfo", params);
//获取手机号解密
const decryptEncryptedData = (params) => mPost("/"+prefix+"/decryptEncryptedData", params);
//获取优惠信息
const getCustomerGradeList = (params) => mGet("/"+prefix+"/getCustomerGradeList", params);
//获取优惠信息-直降、立减、满减方案
const getCustomerGradeInfo = (params) => mPost("/"+prefix+"/getCustomerGradeInfo", params);
export {
  getStationList,
  getOilGunList,
  getMpOpenId,
  postOrderInfo,
  confirmOrder,
  getJhPayInfo,
  saveAppUserInfo,
  decryptEncryptedData,
  getCustomerGradeList,
  getCustomerGradeInfo
};