all.ts 879 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import http from '@/utils/http'
  2. /**
  3. * 获取当前日期的配置信息(发送当天日期拿不可预约日期)
  4. */
  5. export const A3_APIgetInfoByDay = (day: string) => {
  6. return http.get(`wx/book/config?date=${day}`)
  7. }
  8. /**
  9. * 获取课堂列表(选择课程)
  10. */
  11. export const A4_APIgetList = () => {
  12. const obj = { pageNum: 1, pageSize: 99999 }
  13. return http.post('wx/subject/pageList', obj)
  14. }
  15. /**
  16. * 获取课堂详情-通过id
  17. */
  18. export const A5_APIgetInfo = (id: number) => {
  19. return http.get(`wx/subject/detail/${id}`)
  20. }
  21. /**
  22. * 团体认证 - 检查
  23. */
  24. export const A4_APIcheck = () => {
  25. return http.get('wx/auth/check')
  26. }
  27. // ------------------展馆
  28. /**
  29. * 获取当前日期的配置信息(发送当天日期拿不可预约日期)
  30. */
  31. export const B1_APIgetInfoByDay = (day: string) => {
  32. return http.get(`exhibition/book/config?date=${day}`)
  33. }