api.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. import { fetch, uploadFile } from './util.js'
  2. const fetchFn = url => paras => fetch(Object.assign({ url }, paras))
  3. const uploadFileFn = url => paras => uploadFile(Object.assign({ url }, paras))
  4. // 上传图片资源
  5. export const UploadFile = uploadFileFn('/api/common/common/uploadForm')
  6. // 上传小课讲义图片资源
  7. export const UploadLectureNotesImage = uploadFileFn('/api/teacher/teacher/V1/uploadHandout')
  8. // 普通登录
  9. export const WxLogin = fetchFn('/api/user/tlogin')
  10. // 首次登录
  11. export const FirstWxLogin = fetchFn('/api/user/newlogin')
  12. //学生往期反馈记录列表
  13. export const FeedbackHistory = fetchFn('/api/teacher/library/V1/feedbackHistory')
  14. //学生往期记录详情
  15. export const FeedbackDetail = fetchFn('/api/teacher/library/V1/feedbackDetail')
  16. // 馆长端
  17. //查询用户当前的状态
  18. export const CheckStatus = fetchFn('/api/curator/curator/V1/checkStatus')
  19. //注册
  20. export const Register = fetchFn('/api/curator/curator/V1/register')
  21. //查询资料
  22. export const MyInfo = fetchFn('/api/curator/curator/V1/myInfo')
  23. //查询图书馆列表
  24. export const LibList = fetchFn('/api/curator/curator/V1/libList')
  25. //确认支付
  26. export const BathPayVIP = fetchFn('/api/curator/curator/V1/bathPayVIP')
  27. //学生列表
  28. export const StudentList = fetchFn('/api/curator/curator/V1/studentList')
  29. //学生作业任务列表
  30. export const HomeworkList = fetchFn('/api/curator/curator/V1/homeworkList')
  31. //学生反馈报告
  32. export const HomeworkReport = fetchFn('/api/curator/curator/V1/homeworkReport')
  33. //学生学情-整体情况
  34. export const LearningSituationAbstract = fetchFn('/api/curator/curator/V1/learningSituationAbstract')
  35. //学生学情-学科详情
  36. export const LearningSituationDetailNew = fetchFn('/api/curator/curator/V1/learningSituationDetailNew')
  37. //获取服务的所有记录
  38. // export const GetServiceRecords = fetchFn('/api/curator/curator/V1/getServiceRecords')
  39. //解绑小塾
  40. export const UntieDerver = fetchFn('/api/curator/curator/V1/untieDerver')
  41. //老师列表
  42. // export const TeacherList = fetchFn('/api/curator/curator/V1/teacherList')
  43. // //开关老师是否批改
  44. // export const UpdateTeacherCorrect = fetchFn('/api/curator/curator/V1/updateTeacherCorrect')
  45. // 迭代
  46. // 班级列表
  47. export const ClassList = fetchFn('/api/curator/curator/V1/classList')
  48. // 新建班级
  49. export const CreateClass = fetchFn('/api/curator/curator/V1/createClass')
  50. // 重命名班级
  51. export const RenameClass = fetchFn('/api/curator/curator/V1/renameClass')
  52. // 删除班级
  53. export const DeleteClass = fetchFn('/api/curator/curator/V1/deleteClass')
  54. // 班级详情老师列表
  55. export const ClassTeacherList = fetchFn('/api/curator/curator/V1/classTeacherList')
  56. // 校区老师列表
  57. export const TeacherList = fetchFn('/api/curator/curator/V1/teacherList')
  58. // 新建老师
  59. export const CreateTeacher = fetchFn('/api/curator/curator/V1/createTeacher')
  60. // 校区老师详情
  61. export const TeacherDetail = fetchFn('/api/curator/curator/V1/teacherDetail')
  62. // 删除老师
  63. export const DeleteTeacher = fetchFn('/api/curator/curator/V1/deleteTeacher')
  64. // 老师移除班级
  65. export const DetachTeacher = fetchFn('/api/curator/curator/V1/detachTeacher')
  66. // 更新老师学科或身份
  67. export const UpdateTeacherInfo = fetchFn('/api/curator/curator/V1/updateTeacherInfo')
  68. // 老师选择加入班级列表
  69. export const TeacherSelectClassList = fetchFn('/api/curator/curator/V1/teacherSelectClassList')
  70. // 老师确定选择班级
  71. export const ConfirmTeacherClass = fetchFn('/api/curator/curator/V1/confirmTeacherClass')
  72. // 新建学生
  73. export const AddChild = fetchFn('/api/curator/curator/V1/addChild')
  74. // 添加学生更换班级确认
  75. export const ChangeClass = fetchFn('/api/curator/curator/V1/changeClass')
  76. // 查询资料2
  77. export const MyInfo2 = fetchFn('/api/curator/curator/V1/myInfo2')
  78. // 学校列表
  79. export const SchoolList = fetchFn('/api/curator/curator/V1/schoolList')
  80. // 教辅列表
  81. export const BookList = fetchFn('/api/curator/curator/V1/bookList')
  82. // 绑定小塾
  83. export const BindConch = fetchFn('/api/curator/curator/V1/bindConch')
  84. // 查询已拥有服务
  85. export const FindOwnServiceList = fetchFn('/api/curator/curator/V1/findOwnServiceList')
  86. // 查询可购买服务信息
  87. export const FindSaleServiceList = fetchFn('/api/curator/curator/V1/findSaleServiceList')
  88. // 计算服务有效时间
  89. export const CalculateValidInterval = fetchFn('/api/curator/curator/V1/calculateValidInterval')
  90. // 查询有冲突的服务
  91. export const FindConflictServiceList = fetchFn('/api/curator/curator/V1/findConflictServiceList')
  92. // 添加批改服务
  93. export const AddCorrectService = fetchFn('/api/curator/curator/V1/addCorrectService')
  94. // 从校区移除小孩
  95. export const DelLibChild = fetchFn('/api/curator/curator/V1/delLibChild')
  96. // 从校区移除小孩
  97. export const ConfirmClassTeacher = fetchFn('/api/curator/curator/V1/confirmClassTeacher')
  98. // 保存假期设置
  99. export const VacationSetSave = fetchFn('/api/curator/curator/V1/vacationSetSave')
  100. // 假期设置
  101. export const VacationList = fetchFn('/api/curator/curator/V1/vacationList')
  102. // 加入校区审核列表
  103. export const LibAuditList = fetchFn('/api/curator/curator/V1/libAuditList')
  104. // 加入校区审核
  105. export const BindLibAudit = fetchFn('/api/curator/curator/V1/bindLibAudit')
  106. // 难题列表
  107. export const ProblemList = fetchFn('/api/curator/curator/V1/problemList')
  108. // 难题解答详情
  109. export const FindProblemPictureDetail = fetchFn('/api/curator/curator/V1/findProblemPictureDetail')
  110. // 加密
  111. // 注册(加密)
  112. export const RegisterV1 = fetchFn('/api/curator/curator/V1/registerV1')
  113. // 新建学生(加密)
  114. export const AddChildV1 = fetchFn('/api/curator/curator/V1/addChildV1')
  115. // 新建老师(加密)
  116. export const CreateTeacherV1 = fetchFn('/api/curator/curator/V1/createTeacherV1')
  117. // 学生更换班级
  118. export const StudentChangeClass = fetchFn('/api/curator/curator/V1/studentChangeClass')
  119. // 学生选择加入班级列表
  120. export const StudentSelectClassList = fetchFn('/api/curator/curator/V1/studentSelectClassList')
  121. // 手机号绑定
  122. // 获取手机验证码(加密)
  123. export const GetVerificationCode = fetchFn('/api/curator/curator/V1/getVerificationCode')
  124. // 绑定手机号(加密)
  125. export const BindPhone = fetchFn('/api/curator/curator/V1/bindPhone')
  126. // 注册v2(加密)
  127. export const RegisterV2 = fetchFn('/api/curator/curator/V1/registerV2')
  128. // 批量续费
  129. // 续费学生列表
  130. export const RenewStudentList = fetchFn('/api/curator/curator/V1/renewStudentList')
  131. // 批量添加批改服务
  132. export const AddBatchCorrectService = fetchFn('/api/curator/curator/V1/addBatchCorrectService')
  133. // 迭代2020-06-18
  134. // 重启服务
  135. export const AddChildBack = fetchFn('/api/curator/curator/V1/addChildBack')
  136. // 学生详情
  137. export const StudentDetail = fetchFn('/api/curator/curator/V1/studentDetail')
  138. // 修改学生信息
  139. export const ModifyStudentInfo = fetchFn('/api/curator/curator/V1/modifyStudentInfo')
  140. // 学生服务消费记录
  141. export const GetServiceRecordsV1 = fetchFn('/api/curator/curator/V1/getServiceRecordsV1')
  142. // 班级作业上传记录
  143. export const HomeworkUploadRecord = fetchFn('/api/curator/curator/V1/homeworkUploadRecord')
  144. // 积分排行榜
  145. export const CoreRanking = fetchFn('/api/curator/curator/V1/coreRanking')
  146. // 老师审核
  147. export const AuditTeacher = fetchFn('/api/curator/curator/V1/auditTeacher')