hotel.js 993 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import {request} from '@/utils/request.js'
  2. // 获取酒店列表搜索
  3. export function queryNew(data) {
  4. return request({
  5. url: '/springbatchservice/dfy/hotel/queryNew',
  6. method:'post',
  7. data
  8. })
  9. }
  10. // 获取酒店列表
  11. export function getHotelList(data) {
  12. return request({
  13. url: '/springbatchservice/dfy/hotel/hotelList',
  14. method:'post',
  15. data
  16. })
  17. }
  18. // 获取酒店详情
  19. export function getHotelDetail(data) {
  20. return request({
  21. url: '/springbatchservice/dfy/hotel/hotelDetail',
  22. method:'post',
  23. data
  24. })
  25. }
  26. // 获取房间列表
  27. export function getRoomList(data) {
  28. return request({
  29. url: '/springbatchservice/dfy/hotel/ratePlanInfo',
  30. method:'post',
  31. data
  32. })
  33. }
  34. // 创建酒店订单
  35. export function addOrder(data) {
  36. return request({
  37. url: '/springbatchservice/dfy/hotel/addOrder',
  38. method:'post',
  39. data
  40. })
  41. }
  42. // 取消订单接口
  43. export function cancelOrder(data) {
  44. return request({
  45. url: '/springbatchservice/dfy/hotel/cancelOrder',
  46. method:'post',
  47. data
  48. })
  49. }