|
|
@@ -0,0 +1,116 @@
|
|
|
+import request from "@/utils/request";
|
|
|
+
|
|
|
+// 旅游服务页面相关的接口请求地址
|
|
|
+enum API {
|
|
|
+ // 获取住宿统计数据 接口地址
|
|
|
+ BOOKTOTAL_URL = "/template/api/booking/QueryBookingTotal",
|
|
|
+
|
|
|
+ // 获取住宿资源占比数据 接口地址
|
|
|
+ RATEDATA_URL = "/template/api/hotel/QueryTownRate",
|
|
|
+
|
|
|
+ // 获取近7天房间预定趋势数据 接口地址
|
|
|
+ BOOKTREND_URL = "/template/api/booking/QueryBookingTrend",
|
|
|
+
|
|
|
+ // 获取订单量排行数据 接口地址
|
|
|
+ ORDERRANK_URL = "/template/api/booking/QueryOrderRank",
|
|
|
+
|
|
|
+ // 获取近7天平均房价 接口地址
|
|
|
+ AVGPRICE_URL = "/template/api/booking/QueryBookingAvgPrice",
|
|
|
+
|
|
|
+ // 获取特产销售热榜top3数据 接口地址
|
|
|
+ TOPBYAMOUNT_URL = "/template/api/speciality/getTopByAmount",
|
|
|
+
|
|
|
+ // 获取特产近12月销售额数据 接口地址
|
|
|
+ MONTHTREND_URL = "/template/api/speciality/getMonthTrend",
|
|
|
+
|
|
|
+ // 获取景区餐饮类型统计数据 接口地址
|
|
|
+ CATERINGTYPE_URL = "/template/api/catering/getTotal",
|
|
|
+
|
|
|
+ // 获取民宿列表数据 接口地址
|
|
|
+ HOTELLIST_URL = "/template/api/hotel/QueryHotelList",
|
|
|
+
|
|
|
+ // 获取停车场信息 接口地址
|
|
|
+ PARKINGCOUNT_URL = "/template/api/parking/getParkingCount",
|
|
|
+
|
|
|
+ // 获取停车位信息 接口地址
|
|
|
+ PARKINGSPACE_URL = "/template/api/parking/getParkingSpace",
|
|
|
+
|
|
|
+ // 获取停车场资源乡镇分布情况 接口地址
|
|
|
+ PARKINGBYTOWN_URL = "/template/api/parking/getParkingByTown",
|
|
|
+
|
|
|
+ // 获取停车场列表 接口地址
|
|
|
+ ALLPARKINGINFO_URL = "/template/api/parking/getAllParkingInfo",
|
|
|
+
|
|
|
+ // 根据id获取停车场详细信息 接口地址
|
|
|
+ PARKINGINFOBYID_URL = "/template/api/parking/getParkingInfoById",
|
|
|
+
|
|
|
+ // 获取厕所分类数量 接口地址
|
|
|
+ TOILETBASECOUNT_URL = "/template/api/toiletBase/getToiletBaseCount",
|
|
|
+
|
|
|
+ // 获取厕所列表数据 接口地址
|
|
|
+ TOILETBASEINFO_URL = "/template/api/toiletBase/getToiletBaseInfo",
|
|
|
+}
|
|
|
+
|
|
|
+//获取住宿统计数据
|
|
|
+export const reqGetBookTotal = () =>
|
|
|
+ request.get(API.BOOKTOTAL_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+//获取住宿资源占比数据
|
|
|
+export const reqGetRateData = () =>
|
|
|
+ request.get(API.RATEDATA_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+//获取近7天房间预定趋势数据
|
|
|
+export const reqGetBookTrend = () =>
|
|
|
+ request.get(API.BOOKTREND_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+//获取订单量排行数据
|
|
|
+export const reqGetOrderRank = () =>
|
|
|
+ request.get(API.ORDERRANK_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+//获取近7天平均房价
|
|
|
+export const reqGetAvgPrice = () =>
|
|
|
+ request.get(API.AVGPRICE_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取特产销售热榜top3数据
|
|
|
+export const reqGetTopByAmount = () =>
|
|
|
+ request.get(API.TOPBYAMOUNT_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取特产近12月销售额数据
|
|
|
+export const reqGetMonthTrend = () =>
|
|
|
+ request.get(API.MONTHTREND_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取景区餐饮类型统计数据
|
|
|
+export const reqGetCateringType = () =>
|
|
|
+ request.get(API.CATERINGTYPE_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取民宿列表数据
|
|
|
+export const reqGetHotelList = (params: any) =>
|
|
|
+ request.get(API.HOTELLIST_URL, { params, headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取停车场信息
|
|
|
+export const reqGetParkingCount = () =>
|
|
|
+ request.get(API.PARKINGCOUNT_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取停车位信息
|
|
|
+export const reqGetParkingSpace = () =>
|
|
|
+ request.get(API.PARKINGSPACE_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取停车场资源乡镇分布情况
|
|
|
+export const reqGetParkingByTown = () =>
|
|
|
+ request.get(API.PARKINGBYTOWN_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取停车场列表
|
|
|
+export const reqGetAllParkingInfo = () =>
|
|
|
+ request.get(API.ALLPARKINGINFO_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 根据id获取停车场详细信息
|
|
|
+export const reqGetParkingInfoById = (params: any) =>
|
|
|
+ request.get(API.PARKINGINFOBYID_URL, { params, headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取厕所分类数量
|
|
|
+export const reqGetToiletBaseCount = () =>
|
|
|
+ request.get(API.TOILETBASECOUNT_URL, { headers: { type: "local" } });
|
|
|
+
|
|
|
+// 获取厕所列表数据
|
|
|
+export const reqGetToiletBaseInfo = () =>
|
|
|
+ request.get(API.TOILETBASEINFO_URL, { headers: { type: "local" } });
|