no26-爱旅行第六次课后作业
分类: ssm 专栏: 爱旅行项目 标签: 酒店分页查询课后作业
2023-02-20 16:03:43 689浏览
酒店分页查询接口
接口文档
Api路径 | /search/api/hotellist/searchItripHotelPage |
方法 | POST |
参数格式 | JSON |
参数: | {"featureIds":"", "checkInDate":1648544536066, "checkOutDate":1648630936066, "hotelLevel":"", "destination":"北京市"} |
响应 | {"data":{ "beginPos":0, "curPage":1, "pageCount":1, "pageSize":10, "rows":[ {"address":"北京 东城区,近正义路。", "avgScore":4.3, "commentCount":18, "extendPropertyNames":"有无线上网,免费停车,提供餐饮", "extendPropertyPics":"fa fa-wifi,fa fa-product-hunt,icon-food", "featureNames":"东南亚风情,休闲度假,亲子,会议酒店", "hotelLevel":5, "hotelName":"北京首都大酒店", "id":1, "imgUrl":"http://img.itrip.test.com/hotel/8-4567454545412-4567891.jpg", "isOkCount":0, "maxPrice":1677.0, "minPrice":605.0, "redundantCityName":"北京市", "redundantCountryName":"中国", "redundantProvinceName":"北京市", "tradingAreaNames":"前门"}, 。。。。。。。省略 ],"total":6},"errorCode":"0","msg":null,"success":"true"} |
实现效果
最低要求:只带一个目的地查询的条件即可。
最高要求:各个条件都带上。
酒店房型列表接口
接口文档
注意响应数据中data的格式
Api路径 | /biz/api/hotelroom/queryhotelroombyhotel |
方法 | POST |
参数格式 | JSON |
参数: | {"endDate":"2022-03-30T17:08:41.000Z", "hotelId":"1", "isBook":null, "isHavingBreakfast":null, "isTimelyResponse":null, "roomBedTypeId":null," payType":"1", "isCancel":null, "startDate":"2022-03-29T17:08:41.000Z"} |
响应 | {"data":[[{"hotelId":1, "id":3, "isBook":1, "isCancel":1, "isHavingBreakfast":1, "isTimelyResponse":1, "payType":3, "roomBedTypeId":4, "roomPrice":1099.00, "roomTitle":"特惠家庭套房", "satisfaction":4.0 }], [{"hotelId":1, "id":1, "isBook":1, "isCancel":1, "isHavingBreakfast":0, "isTimelyResponse":1, "payType":3, "roomBedTypeId":2, "roomPrice":628.00, "roomTitle":"高级客房", "satisfaction":4.0}], 。。。。。。省略 ],"errorCode":"0","msg":"获取成功","success":"true"} |
实现效果
最低要求:房型列表页展示出来即可。
预习作业
创建订单 理解原始库存,实时库存,可用库存的概念。可以稍微自学一下存储过程。
好博客就要一起分享哦!分享海报
此处可发布评论
评论(0)展开评论
展开评论
您可能感兴趣的博客