shoppingCardApi.js
1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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;