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

50 lines
2.1 KiB

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, })
  16. // 获得我的排课详情
  17. export const scheduleClassGetById = (params) => http.get('business/booking/schedule-class/getById', {params: params, })
  18. // 获得排课
  19. export const scheduleClassGet = (params) => http.get('business/booking/schedule-class/get', {params: params, })
  20. // 发布排课计划
  21. export const scheduleClassCreate = (data) => http.post('business/booking/schedule-class/create', data)
  22. // 获取排课日期范围
  23. export const getClassDateLimit = (params) => http.get('business/booking/global-config/getClassDateLimit', {params} ,)
  24. // 获取排课时间段范围
  25. export const getClassTimeLimt = (params) => http.get('business/booking/global-config/getClassTimeLimt', {params} ,)
  26. // 创建排课模板
  27. export const getClassCreate = (data) => http.post('business/booking/schedule-template/create', data ,)
  28. // 排课模板分页
  29. export const scheduleTemplatePage = (params) => http.get('business/booking/schedule-template/page', {params} ,)
  30. // 更新排课模版
  31. export const scheduleTemplateUpdate = (data) => http.post('business/booking/schedule-template/update', data ,)
  32. // 获取排课模版
  33. export const scheduleTemplateGet = (params) => http.get('business/booking/schedule-template/get', {params} ,)