图书馆小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
997 B

1 month ago
4 weeks ago
  1. import request from '../utils/request';
  2. export function FetchInitLibraryReservationSettings(data) {
  3. return request({
  4. url: '/api/weixin/initLibraryReservationSettings',
  5. data
  6. })
  7. }
  8. // 预约入馆
  9. export function FetchReserve(data) {
  10. return request({
  11. url: '/api/weixin/reserve',
  12. method: 'POST',
  13. data
  14. })
  15. }
  16. // 我的预约-预约登记界面初始化
  17. // ?libcode=&openId=
  18. export function FetchInitMyReservation(data) {
  19. return request({
  20. url: '/api/weixin/myReservationInit',
  21. data
  22. })
  23. }
  24. // 我的预约
  25. // ?libcode=&openId=&page=&size=
  26. // libcode可选填(我不知道小程序是一家图书馆还是多加图书馆的 所以可为空)
  27. export function FetchMyReservation(data) {
  28. return request({
  29. url: '/api/weixin/myReservation',
  30. data
  31. })
  32. }
  33. // 取消预约
  34. export function FetchCancelReservation(data) {
  35. return request({
  36. url: '/api/weixin/cancelReservation',
  37. method: 'POST',
  38. data
  39. })
  40. }