urls.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // const baseUrl = 'https://demo.schoolwisdoms.com';
  2. // const baseUrl = 'https://app.schoolwisdoms.com';
  3. const baseUrl = 'https://excl.schoolwisdoms.com';
  4. // const baseUrl = 'http://192.168.2.103';
  5. const ssoBase = baseUrl + '/sso';
  6. const platformBase = baseUrl + '/admin';
  7. const schoolBase = baseUrl + '/schoolbaby';
  8. const h5Base = baseUrl + '/h5';
  9. const crudListBase = schoolBase + '/crud/list';
  10. const crudSaveBase = schoolBase + '/crud/save';
  11. const crud_save_all = schoolBase + '/crud/save-all';
  12. const crudGetBase = schoolBase + '/crud/get-one';
  13. const platformListBase = platformBase + '/crud/list';
  14. export const urls = {
  15. baseUrl: baseUrl,
  16. h5Url: baseUrl + '/h5/',
  17. login: ssoBase + '/login',
  18. logout: ssoBase + '/logout',
  19. get_cur_user: platformBase + '/user/current',
  20. change_user: platformBase + '/user/change',
  21. get_resource: platformBase + '/permissions/student',
  22. get_advert: crudListBase + '?statement=AdvertMapper.list',
  23. get_leave_count: crudGetBase + '?statement=StudentLeaveMapper.getLeaveCount',
  24. day_report: crudSaveBase + '/dayReport',
  25. day_report_get: crudGetBase + '?statement=DayReportMapper.list',
  26. message_list: crudListBase + '?statement=NoticeMapper.queryListByOrg',
  27. message_detail: crudListBase + '?statement=NoticeMapper.list',
  28. user_sign: crudSaveBase + '/userSign',
  29. user_sign_get: crudGetBase + '?statement=UserSignMapper.list',
  30. leave_get_classes_date: crudListBase + '?statement=StudentClassesMapper.getClassesDate',
  31. leave_get_classes_info: crudListBase + '?statement=StudentClassesMapper.getLeaveClassesInfo',
  32. leave_save: crudSaveBase + '/studentLeave',
  33. leave_detail_save: crudSaveBase + '/studentLeaveDetail',
  34. update_password: platformBase + '/user/updatePasswd',
  35. get_suggest_moudles: platformListBase + '?statement=DictDetailMapper.list&q.headId=1004',
  36. suggest_save: crudSaveBase + '/userFeedBack',
  37. suggest_image_save: crud_save_all + '/userFeedBackImage',
  38. leave_history_list: crudListBase + '?statement=StudentLeaveMapper.list',
  39. file_upload: schoolBase + '/file/upload',
  40. teacher_list: crudListBase + '?statement=TeacherMapper.list',
  41. get_user_head: platformListBase + '?statement=UserMapper.getHead',
  42. update_user_head: platformBase + '/crud/execute?statement=UserMapper.updateHead',
  43. file_load: schoolBase + '/api/file-load?key=',
  44. oss_file: 'https://file.schoolwisdoms.com/',
  45. evaluate_teacher_list: crudListBase + '?statement=EvaluateResultMapper.teacherList',
  46. evaluate_teacher_history_list: crudListBase + '?statement=EvaluateResultMapper.teacherHistoryList',
  47. evaluate_list: crudListBase + '?statement=EvaluateResultMapper.headList',
  48. evaluate_item_list: crudListBase + '?statement=EvaluateResultMapper.itemListByHead',
  49. evaluate_result_clear: crudListBase + '?statement=EvaluateResultMapper.clearResult',
  50. evaluate_result_save: crud_save_all + '/evaluateResult',
  51. get_week: crudListBase + '?statement=TeacherAttenceMapper.getWeekByDate',
  52. get_schedule_week: crudListBase + '?statement=StudentAttenceMapper.getScheduleByWeek',
  53. get_schedule_month: crudListBase + '?statement=StudentAttenceMapper.getScheduleByMonth',
  54. get_transfer_target_list: crudListBase + '?statement=ClassesSwitchingMapper.courseList',
  55. get_homework: crudListBase + '?statement=HomeworkStudentMapper.list',
  56. my_homework: crudListBase + '?statement=HomeworkStudentMapper.queryByStudentId',
  57. complete_homework: schoolBase + '/crud/execute?statement=HomeworkStudentMapper.doHomeWork',
  58. file_delete: schoolBase + '/file/delete',
  59. video_upload: schoolBase + '/video/upload',
  60. video_upload_split: schoolBase + '/video/uploads',
  61. video_delete: schoolBase + '/video/delete',
  62. video_loadImg: schoolBase + '/video/load-image?videoId=',
  63. video_loadInfo: schoolBase + '/video/load-info?videoId=',
  64. video_play: schoolBase + '/nav/video-play?videoId=',
  65. video_auth: schoolBase + '/video/playauth?videoId=',
  66. video_create_upload: schoolBase + '/video/createUploadVideo',
  67. video_refresh_upload: schoolBase + '/video/refreshUploadVideo?videoId=',
  68. get_course_order: crudListBase + '?statement=StudentOrderMapper.getStudentOrder',
  69. get_cooperate_corp_type: platformListBase + '?statement=DictDetailMapper.list&q.headId=1008',
  70. cooperate_save: crudSaveBase + '/otherCooperate',
  71. get_activity_list: crudListBase + '?statement=ActivityMapper.list',
  72. get_activity_detail: crudListBase + '?statement=ActivitySignMapper.queryActivitySign',
  73. activity_sign_save: crudSaveBase + '/activitySign',
  74. activity_sign_delete: schoolBase + '/crud/execute?statement=ActivitySignMapper.deleteActivitySign',
  75. get_course_report: crudListBase + '?statement=StudentAttenceMapper.getCourseReport',
  76. get_course_money: crudListBase + '?statement=StudentAttenceMapper.getAttenceCount',
  77. get_qr_code: schoolBase + '/api/code/generate',
  78. get_activity_share: crudListBase + '?statement=ActivityShareMapper.list',
  79. examine_score: crudListBase + '?statement=ExamineMapper.queryExamineScoreByStudentId',
  80. get_growth_image: crudListBase + '?statement=GrowthRecordMapper.getImageByOrg',
  81. get_switch_course_list: crudListBase + '?statement=TimetableMapper.listChangeCourse',
  82. classes_switch_save: schoolBase + '/classesSwitching/save',
  83. get_chat_contact_single: crudListBase + '?statement=ClassesJpushGroupMapper.queryStudentContact',
  84. get_chat_contact_group: crudListBase + '?statement=ClassesJpushGroupMapper.queryStudentGroupContact',
  85. get_classes: crudGetBase + '?statement=ClassesMapper.list',
  86. attence_student_save: crudSaveBase + '/studentAttence',
  87. get_im_auto_reply: crudListBase + '?statement=JpushAutoReplyMapper.list',
  88. get_student_star: crudListBase + '?statement=StudentAttenceMapper.getStudentStar',
  89. get_student_comment: crudListBase + '?statement=StudentAttenceMapper.getStudentComment',
  90. get_student: crudGetBase + '?statement=StudentMapper.list',
  91. get_student_payout: crudListBase + '?statement=StudentAttenceMapper.queryPayOutRecord',
  92. get_student_date: crudListBase + '?statement=GrowthRecordMapper.getStudentDay',
  93. query_join_day: crudListBase + '?statement=StudentAttenceMapper.queryJoinDay',
  94. query_join_classes: crudListBase + '?statement=StudentAttenceMapper.queryJoinClasses',
  95. query_join_classes_student: crudListBase + '?statement=StudentAttenceMapper.queryJoinClassesStudent',
  96. query_attence_count: crudListBase + '?statement=StudentAttenceMapper.queryAttenceCount',
  97. query_attence_time_length: crudListBase + '?statement=StudentAttenceMapper.queryAttenceTimeLength',
  98. query_attence_data: crudListBase + '?statement=StudentAttenceMapper.queryAttenceData',
  99. query_attence_evaluate_count: crudListBase + '?statement=StudentAttenceMapper.queryAttenceEvaluateCount',
  100. query_attence_evaluate_max_score: crudListBase + '?statement=StudentAttenceMapper.queryAttenceEvaluateMaxScore',
  101. query_class_notice: crudListBase + '?statement=NoticeMapper.queryClassNoticeByStudent',
  102. my_coupon: crudListBase + '?statement=CouponDefMapper.queryCouponMoney',
  103. student_leave: schoolBase + '/studentLeave/save',
  104. student_leave_detail: crudListBase + '?statement=StudentLeaveMapper.queryByAttenceStudent',
  105. student_makeup: schoolBase + '/classesSupplement/save',
  106. makeup_list: crudListBase + '?statement=StudentLeaveMapper.makeupList',
  107. makeup_detail: crudListBase + '?statement=StudentLeaveMapper.queryCourseInfoByStudAttence',
  108. coupon_rule: crudListBase + '?statement=CouponRuleMapper.list',
  109. get_invitation_coupon: crudListBase + '?statement=ActivityShareMapper.queryCoupon',
  110. add_classes_list: crudListBase + '?statement=ClassesAddMapper.queryStudentClasses',
  111. get_last_classes: crudGetBase + '?statement=ClassesAddMapper.getLastClasses',
  112. add_classes: schoolBase + '/classesAdd/save',
  113. notice_receive: schoolBase + '/crud/execute?statement=ClassesStudentNoticeMapper.receive',
  114. homework_receive: schoolBase + '/crud/execute?statement=HomeworkStudentMapper.receive',
  115. get_params: platformListBase + '?statement=ParamsMapper.paramsList',
  116. get_attendance_rate: crudListBase + '?statement=ReportMapper.getStudentAttendanceRate',
  117. get_last_comment: crudGetBase + '?statement=StudentAttenceMapper.getStudentComment',
  118. get_invitation_count: crudGetBase + '?statement=ClientMapper.selectCountByIntroducer',
  119. get_invitation_enroll: crudGetBase + '?statement=ClientMapper.selectEnrollByIntroducer',
  120. get_invitation_coin: crudListBase + '?statement=ClientMapper.selectCoinByIntroducer',
  121. update_video_viewcount: schoolBase + '/crud/execute?statement=CourseVideoMapper.updateViewCount',
  122. get_rand_video_list: crudListBase + '?statement=CourseVideoMapper.getRandVideoList',
  123. get_video_list: crudListBase + '?statement=CourseVideoMapper.getVideoList',
  124. get_holidays: crudListBase + '?statement=HolidayMapper.list',
  125. get_teacherLeave: crudListBase + '?statement=TeacherLeaveMapper.list',
  126. feedback_list: crudListBase + '?statement=FeedBackMapper.list',
  127. feedback_get: crudGetBase + '?statement=FeedBackMapper.list',
  128. feedback_image: crudListBase + '?statement=FeedBackMapper.getImageUrlById',
  129. query_student_evaluate: crudListBase + '?statement=ReportMapper.queryStudentEvaluate',
  130. query_student_star: crudListBase + '?statement=ReportMapper.queryStudentStar',
  131. coupon_receive_list: crudListBase + '?statement=CouponDefMapper.queryCouponReceive',
  132. coupon_receive: schoolBase + '/coupon/receive',
  133. video_save: crudSaveBase + '/video',
  134. person_video_save: crudSaveBase + '/personVideo',
  135. person_video_view_save: crudSaveBase + '/personVideoView',
  136. person_video_course: crudListBase + '?statement=PersonVideoMapper.studentCourse',
  137. person_video_list: crudListBase + '?statement=PersonVideoMapper.list&q.status=1',
  138. person_video_delete: schoolBase + '/crud/execute?statement=PersonVideoMapper.deleteByVideoId',
  139. person_video_views_delete: schoolBase + '/crud/execute?statement=PersonVideoMapper.deleteViewsByVideoId',
  140. get_order: crudListBase + '?statement=StudentOrderMapper.getOrderById',
  141. get_thumbsup_count: crudGetBase + '?statement=PersonVideoMapper.thumbsUpCount',
  142. get_sys_params: crudListBase + '?statement=ParamsMapper.list',
  143. get_contract_images: crudListBase + '?statement=StudentOrderMapper.queryOrderContractImages',
  144. get_attence_count: crudGetBase + '?statement=StudentAttenceMapper.studentAttenceCount',
  145. query_video_creator: crudGetBase + '?statement=PersonVideoMapper.queryCreatorByVideoId',
  146. query_invitation_list: crudListBase + '?statement=ClientMapper.queryInvitationList',
  147. cooperate_send_message: schoolBase + '/jMessage/sendCooperateMessage',
  148. homework_complete_send_message: schoolBase + '/jMessage/sendHomeworkCompleteMessage',
  149. suggest_send_message: schoolBase + '/jMessage/sendFeedBackMessage',
  150. get_bill_share_image: schoolBase + '/api/billShareImage',
  151. get_bill_share_url: schoolBase + '/api/billShare',
  152. checkAppVersion: schoolBase + '/api/checkAppVersion',
  153. show_monitor: h5Base + '/api/monitor/get',
  154. get_piano_card_list: crudListBase + '?statement=ExerciseSchemeMapper.list',
  155. get_mp_list: crudListBase + '?statement=WxAppMapper.list',
  156. get_near_school: schoolBase + '/student/schoolList',
  157. collect_school: schoolBase + '/student/collectSchool',
  158. query_school_attence: schoolBase + '/student/schoolAttence',
  159. do_appointment: schoolBase + '/student/appointment',
  160. do_appointment_check: schoolBase + '/student/checkCard',
  161. query_appointment_list: crudListBase + '?statement=ExercisePlanMapper.queryReserve',
  162. cancel_appointment: schoolBase + '/timetable/updateExercisePlanStatus',
  163. };