point.js 725 Bytes
import request from '@/sheep/request';

const PointApi = {
  // 查询当前我的积分
  getMyPoint: () => {
    return request({
      url: '/app/integral/getMyPoint',
      method: 'get',
    });
  },
  // 获取礼品卡列表
  getGiftCardList: () => {
    return request({
      url: '/app/integral/list',
      method: 'get',
      custom: {
        loadingMsg: '加载中',
      },
    });
  },
  //  礼品卡常见问题
  getGiftCardQuestion: () => {
    return request({
      url: '/app/integral/question',
      method: 'get',
    });
  },
  // 礼品卡详情
  getGiftCardDetail: () => {
    return request({
      url: '/app/integral/detail',
      method: 'get',
    });
  },
};

export default PointApi;