urls.js 11 KB

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