西藏巴青项目

myAppointment.js 792B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import request from '@/utils/request'
  2. /** 我的预约列表 */
  3. export function listMyAppointments(params) {
  4. return request({
  5. url: '/app/myAppointment/list',
  6. method: 'GET',
  7. params
  8. })
  9. }
  10. /** 取消预约 */
  11. export function cancelMyAppointment(id) {
  12. return request({
  13. url: `/app/myAppointment/cancel/${id}`,
  14. method: 'POST',
  15. header: { repeatSubmit: false }
  16. })
  17. }
  18. /** 查看预约评价(专家、已完成) */
  19. export function getMyAppointmentReview(id) {
  20. return request({
  21. url: `/app/myAppointment/${id}/review`,
  22. method: 'GET'
  23. })
  24. }
  25. /** 提交预约评价 */
  26. export function submitMyAppointmentReview(id, data) {
  27. return request({
  28. url: `/app/myAppointment/${id}/review`,
  29. method: 'POST',
  30. header: { repeatSubmit: false },
  31. data
  32. })
  33. }