import { fetch, uploadFile } from './util.js' const fetchFn = url => paras => fetch(Object.assign({ url }, paras)) const uploadFileFn = url => paras => uploadFile(Object.assign({ url }, paras)) // 上传图片资源 export const UploadFile = uploadFileFn('/api/common/common/uploadForm') // 上传小课讲义图片资源 export const UploadLectureNotesImage = uploadFileFn('/api/teacher/teacher/V1/uploadHandout') // 普通登录 export const WxLogin = fetchFn('/api/user/tlogin') // 首次登录 export const FirstWxLogin = fetchFn('/api/user/newlogin') //学生往期反馈记录列表 export const FeedbackHistory = fetchFn('/api/teacher/library/V1/feedbackHistory') //学生往期记录详情 export const FeedbackDetail = fetchFn('/api/teacher/library/V1/feedbackDetail') // 馆长端 //查询用户当前的状态 export const CheckStatus = fetchFn('/api/curator/curator/V1/checkStatus') //注册 export const Register = fetchFn('/api/curator/curator/V1/register') //查询资料 export const MyInfo = fetchFn('/api/curator/curator/V1/myInfo') //查询图书馆列表 export const LibList = fetchFn('/api/curator/curator/V1/libList') //确认支付 export const BathPayVIP = fetchFn('/api/curator/curator/V1/bathPayVIP') //学生列表 export const StudentList = fetchFn('/api/curator/curator/V1/studentList') //学生作业任务列表 export const HomeworkList = fetchFn('/api/curator/curator/V1/homeworkList') //学生反馈报告 export const HomeworkReport = fetchFn('/api/curator/curator/V1/homeworkReport') //学生学情-整体情况 export const LearningSituationAbstract = fetchFn('/api/curator/curator/V1/learningSituationAbstract') //学生学情-学科详情 export const LearningSituationDetailNew = fetchFn('/api/curator/curator/V1/learningSituationDetailNew') //获取服务的所有记录 // export const GetServiceRecords = fetchFn('/api/curator/curator/V1/getServiceRecords') //解绑小塾 export const UntieDerver = fetchFn('/api/curator/curator/V1/untieDerver') //老师列表 // export const TeacherList = fetchFn('/api/curator/curator/V1/teacherList') // //开关老师是否批改 // export const UpdateTeacherCorrect = fetchFn('/api/curator/curator/V1/updateTeacherCorrect') // 迭代 // 班级列表 export const ClassList = fetchFn('/api/curator/curator/V1/classList') // 新建班级 export const CreateClass = fetchFn('/api/curator/curator/V1/createClass') // 重命名班级 export const RenameClass = fetchFn('/api/curator/curator/V1/renameClass') // 删除班级 export const DeleteClass = fetchFn('/api/curator/curator/V1/deleteClass') // 班级详情老师列表 export const ClassTeacherList = fetchFn('/api/curator/curator/V1/classTeacherList') // 校区老师列表 export const TeacherList = fetchFn('/api/curator/curator/V1/teacherList') // 新建老师 export const CreateTeacher = fetchFn('/api/curator/curator/V1/createTeacher') // 校区老师详情 export const TeacherDetail = fetchFn('/api/curator/curator/V1/teacherDetail') // 删除老师 export const DeleteTeacher = fetchFn('/api/curator/curator/V1/deleteTeacher') // 老师移除班级 export const DetachTeacher = fetchFn('/api/curator/curator/V1/detachTeacher') // 更新老师学科或身份 export const UpdateTeacherInfo = fetchFn('/api/curator/curator/V1/updateTeacherInfo') // 老师选择加入班级列表 export const TeacherSelectClassList = fetchFn('/api/curator/curator/V1/teacherSelectClassList') // 老师确定选择班级 export const ConfirmTeacherClass = fetchFn('/api/curator/curator/V1/confirmTeacherClass') // 新建学生 export const AddChild = fetchFn('/api/curator/curator/V1/addChild') // 添加学生更换班级确认 export const ChangeClass = fetchFn('/api/curator/curator/V1/changeClass') // 查询资料2 export const MyInfo2 = fetchFn('/api/curator/curator/V1/myInfo2') // 学校列表 export const SchoolList = fetchFn('/api/curator/curator/V1/schoolList') // 教辅列表 export const BookList = fetchFn('/api/curator/curator/V1/bookList') // 绑定小塾 export const BindConch = fetchFn('/api/curator/curator/V1/bindConch') // 查询已拥有服务 export const FindOwnServiceList = fetchFn('/api/curator/curator/V1/findOwnServiceList') // 查询可购买服务信息 export const FindSaleServiceList = fetchFn('/api/curator/curator/V1/findSaleServiceList') // 计算服务有效时间 export const CalculateValidInterval = fetchFn('/api/curator/curator/V1/calculateValidInterval') // 查询有冲突的服务 export const FindConflictServiceList = fetchFn('/api/curator/curator/V1/findConflictServiceList') // 添加批改服务 export const AddCorrectService = fetchFn('/api/curator/curator/V1/addCorrectService') // 从校区移除小孩 export const DelLibChild = fetchFn('/api/curator/curator/V1/delLibChild') // 从校区移除小孩 export const ConfirmClassTeacher = fetchFn('/api/curator/curator/V1/confirmClassTeacher') // 保存假期设置 export const VacationSetSave = fetchFn('/api/curator/curator/V1/vacationSetSave') // 假期设置 export const VacationList = fetchFn('/api/curator/curator/V1/vacationList') // 加入校区审核列表 export const LibAuditList = fetchFn('/api/curator/curator/V1/libAuditList') // 加入校区审核 export const BindLibAudit = fetchFn('/api/curator/curator/V1/bindLibAudit') // 难题列表 export const ProblemList = fetchFn('/api/curator/curator/V1/problemList') // 难题解答详情 export const FindProblemPictureDetail = fetchFn('/api/curator/curator/V1/findProblemPictureDetail') // 加密 // 注册(加密) export const RegisterV1 = fetchFn('/api/curator/curator/V1/registerV1') // 新建学生(加密) export const AddChildV1 = fetchFn('/api/curator/curator/V1/addChildV1') // 新建老师(加密) export const CreateTeacherV1 = fetchFn('/api/curator/curator/V1/createTeacherV1') // 学生更换班级 export const StudentChangeClass = fetchFn('/api/curator/curator/V1/studentChangeClass') // 学生选择加入班级列表 export const StudentSelectClassList = fetchFn('/api/curator/curator/V1/studentSelectClassList') // 手机号绑定 // 获取手机验证码(加密) export const GetVerificationCode = fetchFn('/api/curator/curator/V1/getVerificationCode') // 绑定手机号(加密) export const BindPhone = fetchFn('/api/curator/curator/V1/bindPhone') // 注册v2(加密) export const RegisterV2 = fetchFn('/api/curator/curator/V1/registerV2') // 批量续费 // 续费学生列表 export const RenewStudentList = fetchFn('/api/curator/curator/V1/renewStudentList') // 批量添加批改服务 export const AddBatchCorrectService = fetchFn('/api/curator/curator/V1/addBatchCorrectService') // 迭代2020-06-18 // 重启服务 export const AddChildBack = fetchFn('/api/curator/curator/V1/addChildBack') // 学生详情 export const StudentDetail = fetchFn('/api/curator/curator/V1/studentDetail') // 修改学生信息 export const ModifyStudentInfo = fetchFn('/api/curator/curator/V1/modifyStudentInfo') // 学生服务消费记录 export const GetServiceRecordsV1 = fetchFn('/api/curator/curator/V1/getServiceRecordsV1') // 班级作业上传记录 export const HomeworkUploadRecord = fetchFn('/api/curator/curator/V1/homeworkUploadRecord') // 积分排行榜 export const CoreRanking = fetchFn('/api/curator/curator/V1/coreRanking') // 老师审核 export const AuditTeacher = fetchFn('/api/curator/curator/V1/auditTeacher')