shoppingCardApi.js 1.13 KB
import request from '@/sheep/request';

const shoppingCardApi = {
  // 查询特定城市下包月私教卡
  getPtCardByCity: (cityId) => {
    return request({
      url: `/app/fitness/pt-card/${cityId}`,
      method: 'GET',
    });
  },
  // 查询特定城市下私教卡对应套餐的权益
  getPtCardSetmeal: (id) => {
    return request({
      url: `/app/fitness/pt-card/listBenefit/${id}`,
      method: 'GET',
    });
  },
  // 查询特定城市下月卡列表
  getMonthCardByCity: (cityId) => {
    return request({
      url: `/app/card/MonthlyCard/${cityId}`,
      method: 'GET',
    });
  },
  //   查询特定城市下包月团课卡
  getGroupCardByCity: (cityId) => {
    return request({
      url: `/app/card/GroupClassCard/${cityId}`,
      method: 'GET',
    });
  },
  //   查询健身卡权益
  getCardBenefit: (id) => {
    return request({
      url: `/app/card/listBenefit/${id}`,
      method: 'GET',
    });
  },

  // 获取特定类型卡的可用城市列表
  getCityList: (type) => {
    return request({
      url: `/app/card/cities/${type}`,
      method: 'GET',
    });
  },
};

export default shoppingCardApi;