江西小程序管理端
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.

89 lines
3.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. var http = uni.$u.http
  2. // 隐私政策
  3. export const getAgreement = (params, config = {}) => http.post('/util/manage/getAgreement.do', params, config)
  4. // 验证码登录
  5. export const loginPwd = (data) => http.post('system/auth/login', data, { custom: { noToken: true , 'Tenant-Id': data['Tenant-Id']}})
  6. // 获取个人信息
  7. export const getUserInfo = (data) => http.post('member/user/get', {header: {'contentType': 1}})
  8. // 退出登录
  9. export const logOut = (data={}) => http.post('member/auth/logout', data, { custom: { noToken: true }})
  10. // 驾校列表分页
  11. export const schoolPage = (params) => http.get('business/school/page', {params: params})
  12. // 获得租户分页
  13. export const tenantPage = (params) => http.get('system/tenant/pages', {params: params, custom: { noToken: true }})
  14. // 实操预约记录分页
  15. export const bookingMasterPage = (params) => http.get('business/booking/master/page', {params: params, header: {'contentType': 3} })
  16. // 获得我的排课详情
  17. export const scheduleClassGetById = (params) => http.get('business/booking/schedule-class/getById', {params: params, })
  18. // 获得我的排课详情预约记录
  19. export const getBookingDetailByClassId = (params) => http.get('business/booking/master/getBookingDetailByClassId', {params: params, })
  20. // 获得排课
  21. export const scheduleClassGet = (params) => http.get('business/booking/schedule-class/get', {params: params, })
  22. // 发布排课计划
  23. export const scheduleClassCreate = (data) => http.post('business/booking/schedule-class/create', data)
  24. // 根据时间段发布排课计划
  25. export const scheduleClassCreateByTime = (data) => http.post('business/booking/schedule-class/createByTime', data)
  26. // 获取排课日期范围
  27. export const getClassDateLimit = (params) => http.get('business/booking/global-config/getClassDateLimit', {params} ,)
  28. // 获取排课时间段范围
  29. export const getClassTimeLimt = (params) => http.get('business/booking/global-config/getClassTimeLimt', {params} ,)
  30. // 创建排课模板
  31. export const getClassCreate = (data) => http.post('business/booking/schedule-template/create', data ,)
  32. // 排课模板分页
  33. export const scheduleTemplatePage = (params) => http.get('business/booking/schedule-template/page', {params} ,)
  34. // 更新排课模版
  35. export const scheduleTemplateUpdate = (data) => http.put('business/booking/schedule-template/update', data ,)
  36. // 获取排课模版
  37. export const scheduleTemplateGet = (params) => http.get('business/booking/schedule-template/get', {params} ,)
  38. // 训练场地
  39. export const trainingSiteList = (params) => http.get('business/training-site/list', {params} ,)
  40. // 获得考场模拟预约记录分页
  41. export const examSimulationPages = (params) => http.get('business/exam-simulation-record/page', {params} ,)
  42. // 已报名学员
  43. export const studentRecordPage = (params) => http.get('business/student-record/page', {params} ,)
  44. // 驾校班型
  45. export const schoolClass = (params) => http.get('business/school-class/get', {params} ,)
  46. // 获得学员档案记录
  47. export const studentDetail = (params) => http.get('business/student-record/getStudent', {params} ,)
  48. // 获得教练车信息分页
  49. export const carPage = (params) => http.get('business/car/page', {params} ,)
  50. // 驾校场地分页
  51. export const sitePage = (params) => http.get('business/training-site/page', {params} ,)
  52. // 驾校教练分页
  53. export const coachPage = (params) => http.get('business/coach/page', {params})
  54. // 驾校教练详情
  55. export const coachDetail = (params) => http.get('business/coach/get', {params})
  56. // 教练评价列表分页
  57. export const coachCommentPage = (params) => http.get('app/coach-comment/page', {params})
  58. // 获得驾校评价
  59. export const schoolCommentPage = (params) => http.get('business/school-comment/page', {params})