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

119 lines
4.9 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
12 months ago
12 months ago
12 months ago
12 months ago
12 months 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 bookingMasterDetail = (params) => http.get('business/booking/master/get', {params: params, header: {'contentType': 3} })
  18. // 获得我的排课详情
  19. export const scheduleClassGetById = (params) => http.get('business/booking/schedule-class/getById', {params: params, })
  20. // 获得我的排课详情预约记录
  21. export const getBookingDetailByClassId = (params) => http.get('business/booking/master/getBookingDetailByClassId', {params: params, })
  22. // 获得排课
  23. export const scheduleClassGet = (params) => http.get('business/booking/schedule-class/get', {params: params, })
  24. // 发布排课计划
  25. export const scheduleClassCreate = (data) => http.post('business/booking/schedule-class/create', data)
  26. // 根据时间段发布排课计划
  27. export const scheduleClassCreateByTime = (data) => http.post('business/booking/schedule-class/createByTime', data)
  28. // 获取排课日期范围
  29. export const getClassDateLimit = (params) => http.get('business/booking/global-config/getClassDateLimit', {params} ,)
  30. // 获取排课时间段范围
  31. export const getClassTimeLimt = (params) => http.get('business/booking/global-config/getClassTimeLimt', {params} ,)
  32. // 创建排课模板
  33. export const getClassCreate = (data) => http.post('business/booking/schedule-template/create', data ,)
  34. // 排课模板分页
  35. export const scheduleTemplatePage = (params) => http.get('business/booking/schedule-template/page', {params} ,)
  36. // 更新排课模版
  37. export const scheduleTemplateUpdate = (data) => http.put('business/booking/schedule-template/update', data ,)
  38. // 获取排课模版
  39. export const scheduleTemplateGet = (params) => http.get('business/booking/schedule-template/get', {params} ,)
  40. // 训练场地
  41. export const trainingSiteList = (params) => http.get('business/training-site/list', {params} ,)
  42. // 获得考场模拟预约记录分页
  43. export const examSimulationPages = (params) => http.get('business/exam-simulation-record/page', {params} ,)
  44. // 已报名学员
  45. export const studentRecordPage = (params) => http.get('business/student-record/page', {params} ,)
  46. // 驾校班型
  47. export const schoolClass = (params) => http.get('business/school-class/get', {params} ,)
  48. // 获得学员档案记录
  49. export const studentDetail = (params) => http.get('business/student-record/getStudent', {params} ,)
  50. // 获得教练车信息分页
  51. export const carPage = (params) => http.get('business/car/page', {params} ,)
  52. // 驾校场地分页
  53. export const sitePage = (params) => http.get('business/training-site/page', {params} ,)
  54. // 驾校教练分页
  55. export const coachPage = (params) => http.get('business/coach/page', {params})
  56. // 驾校教练详情
  57. export const coachDetail = (params) => http.get('business/coach/get', {params})
  58. // 教练评价列表分页
  59. export const coachCommentPage = (params) => http.get('app/coach-comment/page', {params})
  60. // 获得驾校评价
  61. export const schoolCommentPage = (params) => http.get('business/school-comment/page', {params})
  62. // 修改用户密码
  63. export const updatePassword = (data) => http.put('system/user/profile/update-password', data)
  64. // 获得考场分页
  65. export const simulationPage = (params) => http.get('business/booking/simulation-record/page', {params})
  66. // 获得考场列分页
  67. export const businessSitePage = (params) => http.get('business/site/page', {params})
  68. // 教练绑定教练车
  69. export const coachBinding = (data) => http.post('business/coach/binding', data)
  70. // 取消绑定教练车
  71. export const coachUnbinding = (data) => http.put('business/coach/unbinding', data)
  72. // 获得考场车辆管理分页
  73. export const siteCarPage = (params) => http.get('business/site-car/page', {params})
  74. // 我的学员(累计学员、今日新增学员、等)
  75. export const studentOwner = (params) => http.get('business/student-record/owner', {params})
  76. // 获得学员档案记录列表
  77. export const studentList = (params) => http.get('business/student-record/page', {params})
  78. // 绑定教练
  79. export const studentBindCoach = (data) => http.post('business/student-record/bindCoach', data)