urls.js 11 KB

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