/**
 * api
 * GIC卡券包
 */
import getFetch from './get-fetch.js';
import { welfarePrefix } from '@/config';

// 卡券包
let packages = {
  savePackages: {
    // 新增、编辑卡券包  /coupon-package/save-package  /coupon-package/edit-package
    url: '/coupon-package/{type}-package', // edit add
    method: 'post',
    useFormData: true,
    rest: true
  },
  pageCouponPackage: '/coupon-package/page-package', // 获取卡券包列表
  pagePackageLog: '/coupon-package/page-package-log', // 卡券包发放记录
  packageCouponReceiveLog: '/coupon-package/package-coupon-receive-log', // 卡券领取记录详情 TODO:
  getPackageDetail: '/coupon-package/package-detail', // 获取卡券包详情
  deletePackage: '/coupon-package/batch-del-package', // 删除某个卡券包
  optPackageStock: '/coupon-package/opt-package-stock', // 调整卡券包库存 TODO:
  addPackageItem: '/coupon-package/add-package-item', // 往卡券包里添加卡券
  EditPackageItem: '/coupon-package/del-package-item', // 往卡券包里删除卡券
  listCouponByPackageId: '/coupon-package/list-coupon', // 根据卡券包id获取卡券列表

};
packages = getFetch(packages, welfarePrefix);

export default { ...packages };

