appointment.js 824 B

123456789101112131415161718
  1. // 预约 api
  2. import { wxRequest } from './request'
  3. const appointmentListURL = '/appointment/list' // 我的预约列表
  4. const cancelAppointmentURL = '/cancel/appointment' // 取消预约
  5. const submitAppointmentURL = '/submit/appointment' // 提交预约
  6. const getResetNumberURL = '/get/rest/number' // 区域剩余可用预约次数
  7. const getAccountNmberURL = '/get/account/number' // 查询账户剩余可使用的次数
  8. export const appointmentList = (data) => wxRequest(appointmentListURL, data)
  9. export const cancelAppointment = (data) => wxRequest(cancelAppointmentURL, data)
  10. export const submitAppointment = (data) => wxRequest(submitAppointmentURL, data)
  11. export const getResetNumber = (data) => wxRequest(getResetNumberURL, data)
  12. export const getAccountNmber = (data) => wxRequest(getAccountNmberURL, data)