import request from '@/sheep/request';

const PayPointApi = {
  // 获得钱包充值套餐列表
  getPointRechargePackageList: () => {
    return request({
      url: '/pay/point-recharge-package/list',
      method: 'GET',
      custom: {
        showError: false,
        showLoading: false,
      },
    });
  },
  // 创建钱包充值记录（发起充值）
  createPointRecharge: (data) => {
    return request({
      url: '/pay/point-recharge/create',
      method: 'POST',
      data,
    });
  },
  // 获得钱包充值记录分页
  getPointRechargePage: (params) => {
    return request({
      url: '/pay/point-recharge/page',
      method: 'GET',
      params,
      custom: {
        showError: false,
        showLoading: false,
      },
    });
  },
};

export default PayPointApi;
