api.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // const API_BASE = 'https://xinghuolanqiu.com/newApi'
  2. //const API_BASE = 'http://192.168.1.126:30000'
  3. const API_BASE = 'http://www.jihengcc.cn:17080/newApi'
  4. // const API_BASE = 'http://192.168.1.117:8089'
  5. module.exports = {
  6. // 微信授权登录
  7. wxLogin: API_BASE + '/v2/coach/login/wxLogin',
  8. // 账号密码登录
  9. loginByPassword: API_BASE + '/v2/coach/login/login',
  10. // 提交补课表单
  11. submitExtraLessonsForm: API_BASE + '/v2/sale/class/extraLessonsSubmit',
  12. // 获取补课学员列表
  13. getExtraLessonsStudentList: API_BASE + '/v2/sale/class/extraLessonsStudentList',
  14. // 获取我的班级列表
  15. getClassList: API_BASE + '/v2/sale/class/getClassList',
  16. // 获取场馆列表列表
  17. getVenueList: API_BASE + '/v2/sale/class/getVenueList',
  18. // 获取我的排班列表
  19. getTimetableList: API_BASE + '/v2/sale/class/getClassSort',
  20. // 提交新建班级表单
  21. submitClassForm: API_BASE + '/v2/sale/class/create',
  22. // 获取班级详情
  23. getClassDetail: API_BASE + '/v2/sale/class/getDetail',
  24. // 班级信息修改
  25. classUpdate: API_BASE + '/v2/sale/class/update',
  26. // 班级删除
  27. deleteById: API_BASE + '/v2/sale/class/deleteById',
  28. // 获取班级近况
  29. getClassDetailShowList: API_BASE + '/v2/sale/class/getClassDetailShowList',
  30. // 教练近况发布
  31. insertClassShow: API_BASE + '/v2/sale/class/insertClassShow',
  32. // 教练近况删除
  33. deleteClassShow: API_BASE + '/v2/sale/class/deleteClassShow',
  34. // 获取学员详情
  35. getStudentDetail: API_BASE + '/v2/sale/class/getStudentDetail',
  36. // 提交历程表单
  37. submitCourseForm: API_BASE + '/v2/sale/class/addGrow',
  38. // 获取本课程学员列表
  39. getSignStudentList: API_BASE + '/v2/sale/class/getSignStudentList',
  40. // 获取非本课程学员列表
  41. getOtherSignStudentList: API_BASE + '/v2/sale/class/getOtherSignStudentList',
  42. // 提交签到表单
  43. submitSignForm: API_BASE + '/v2/sale/class/signSubmit',
  44. // 班级详情->扫码
  45. classCourseWriteOff: API_BASE + '/v2/sale/class/classCourseWriteOff',
  46. // 班级详情->请假详情
  47. leaveLessonsInfo: API_BASE + ' /v2/sale/class/leaveLessonsInfo',
  48. // 班级详情->续费卡列表
  49. stuRenewalCardList: API_BASE + ' /v2/sale/class/stuRenewalCardList',
  50. // 班级详情->续费卡->确认
  51. openRenewalCard: API_BASE + ' /v2/sale/class/openRenewalCard',
  52. // 获取消息通知列表
  53. getMessageList: API_BASE + '/v2/coach/message/getMessageList',
  54. // 消息请假同意
  55. leaveLessonsOk: API_BASE + '/v2/coach/center/leaveLessonsOk',
  56. // 获取我的评价列表
  57. getEvaluateList: API_BASE + '/v2/coach/center/getRatingList',
  58. // 获取我的评价详情
  59. getEvaluateInfo: API_BASE + '/v2/coach/center/getRatingDetail',
  60. // 教练回复
  61. setSignRemark: API_BASE + '/v2/class/setSignRemark',
  62. // 获取我的补课记录列表
  63. getExtraLessonsList: API_BASE + '/v2/coach/center/getExtraLessonsList',
  64. // 获取我的请假记录列表
  65. getLeaveLessonsList: API_BASE + '/v2/coach/center/getLeaveLessonsList',
  66. // 获取我的续费提醒列表
  67. getRenewList: API_BASE + '/v2/coach/center/getSignReminderList',
  68. // 获取我的签到提醒列表
  69. getSignList: API_BASE + '/v2/coach/center/getRenewalReminderList',
  70. // 获取我的签到学员详情
  71. getSignStudentInfo: API_BASE + '/v2/coach/center/getSignStudentList',
  72. // 获取续费学员沟通记录列表
  73. getRenewCommunicateList: API_BASE + '/v2/coach/center/getRenewalCommunicateRecordList',
  74. // 获取签到学员沟通记录列表
  75. getSignCommunicateList: API_BASE + '/v2/coach/center/getSignCommunicateRecordList',
  76. // 提交续费学员沟通记录表单
  77. submitRenewCommunicateForm: API_BASE + '/v2/coach/center/writeRenewalCommunicateRecord',
  78. // 提交签到学员沟通记录表单
  79. submitSignCommunicateForm: API_BASE + '/v2/coach/center/writeSignCommunicateRecord',
  80. // 获取续费率
  81. getRenewPercent: API_BASE + '/v2/coach/center/getRenewPercent',
  82. // 获取续费率排名列表
  83. getRenewRankingList: API_BASE + '/v2/coach/center/getRenewRankingList',
  84. // 获取签到率
  85. getSignPercent: API_BASE + '/v2/coach/center/getSignPercent',
  86. // 获取签到率排名列表
  87. getSignRankingList: API_BASE + '/v2/coach/center/getSignRankingList',
  88. // 获取服务器端图片
  89. getServerImg: API_BASE + '/download/icon/',
  90. // 上传地址
  91. uploadFile: API_BASE + '/v2/common/file/uploadOne',
  92. }