A2orderSet.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. import { A2getConfigType, A2NolistIdType, A2setConfigType } from '@/pages/A2orderSet/type'
  2. import http from '@/utils/http'
  3. /**
  4. * 课程预约设置-获取时段列表
  5. */
  6. export const A2_APIgeiList = () => {
  7. return http.get('cms/book/getList')
  8. }
  9. /**
  10. * 课程预约设置-修改时段
  11. */
  12. export const A2_APIedit = (data: any) => {
  13. return http.post('cms/book/save', data)
  14. }
  15. /**
  16. * 课程预约设置-修改配置项 不可约日期:id=10 | 预约须知:id=11 | 邮箱:id=12 | 预约单模板:id=13, rtf:前端内容; 日期yyyy-MM-dd用逗号分隔-----15:展馆-不可预约日期 | 16:展馆-预约须知
  17. */
  18. export const A2_APIsetConfig = (
  19. src: A2setConfigType,
  20. data: { id: A2NolistIdType; rtf: string }
  21. ) => {
  22. return http.post(src, data)
  23. }
  24. /**
  25. * 课程预约设置-获取配置 不可约日期:id=10 | 预约须知:id=11 | 邮箱:id=12 | 预约单模板:id=13-----15:展馆-不可预约日期 | 16:展馆-预约须知
  26. */
  27. export const A2_APIgetConfig = (src: A2getConfigType, id: A2NolistIdType) => {
  28. return http.get(`${src}/${id}`)
  29. }