import http from '../common/axios.js' //全部api接口 export default { //↓↓↓↓↓↓↓↓↓↓↓↓-----公共接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓ //教师/销售端登陆 async personnelLogin(data = {}) { const response = await http.post('/personnelLogin', data); console.log('登录响应:', response); return response; }, //教师/销售端详情 async getPersonnelInfo(data = {}) { return await http.get('/personnel/info', data); }, //教师/销售端详情 async editPersonnelInfo(data = {}) { return await http.post('/personnel/edit', data); }, //教师/销售端请假/打卡/签退-编辑 async common_attendanceEdit(data = {}) { return await http.post('/attendance/edit', data); }, //教师/销售端请假/打卡/签退-列表 async common_attendanceIndex(data = {}) { return await http.post('/attendance/index', data); }, //获取字典数据 async common_Dictionary(data = {}) { return await http.get('/common/getDictionary', data); }, //公共端-获取全部员工列表 async common_getPersonnelAll(data = {}) { return await http.get('/personnel/getPersonnelAll', data); }, //公共端-获取全部课程列表 async common_getCourseAll(data = {}) { return await http.get('/common/getCourseAll', data); }, //公共端-获取全部班级列表 async common_getClassAll(data = {}) { return await http.get('/common/getClassAll', data); }, //公共端-教师/销售端验证旧密码是否正确 async common_personnelCheckOldPwd(data = {}) { return await http.post('/personnel/checkOldPwd', data); }, //公共端-教师/销售端验证旧密码是否正确 async common_personnelEdidPassword(data = {}) { return await http.post('/personnel/edidPassword', data); }, //公共端-教师/销售端验证旧密码是否正确 async common_getPersonnelCampus(data = {}) { return await http.get('/campus/getPersonnelCampus', data); }, //公共端-忘记密码-通过短信验证码进行密码重置(学生/员工通用) async common_forgetPassword(data = {}) { return await http.post('/common/forgetPassword', data); }, //公共端-获取配置项 async common_getConfig(data = {}) { return await http.get('/common/getConfig', data); }, //公共端-获取配置项 async common_getMiniWxOpenId(data = {}) { return await http.post('/common/getMiniWxOpenId', data); }, //↓↓↓↓↓↓↓↓↓↓↓↓-----教练接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓ //获取我的页面统计个数 async getStatisticsInfo(data = {}) { return await http.get('/class/Statistics/info', data); }, //添加作业 async jlPublishJob(data = {}) { return await http.get('/class/jlPublishJob/add', data); }, //添加作业-学员列表 async jlGetStudentList(data = {}) { return await http.get('/class/jlGetStudentList/list', data); }, //添加作业-获取课程列表 async jlGetCoursesList(data = {}) { return await http.get('/class/jlGetCoursesList/list', data); }, //添加作业-获取班级列表 async jlGetClassesList(data = {}) { return await http.get('/class/jlGetClasses/list', data); }, //体测报告-详情 async physicalTestInfo(data = {}) { return await http.get('/class/physicalTest/info', data); }, //体测报告-列表 async physicalTest(data = {}) { return await http.get('/class/physicalTest', data); }, //获取学员详情 async jlStudentsInfo(data = {}) { return await http.get('/class/jlStudentsInfo', data); }, //获取添加学员列表 async addStudentList(data = {}) { return await http.get('/course/addStudentList', data); }, async addStudent(data = {}) { return await http.post('/course/addStudent', data); }, async delStudentCourse(data = {}) { return await http.get('/course/delStudentCourse', data); }, //获取班级列表 async jlClassList(data = {}) { return await http.get('/class/jlClassList', data); }, //获取班级详情 async jlClassInfo(data = {}) { return await http.get('/class/jlClassInfo', data); }, //获取课程列表 async courseList(data = {}) { return await http.get('/course/courseList', data); }, //获取班级课程列表 async classCourseList(data = {}) { return await http.get('/course/classCourseList', data); }, //获取课程详情 async courseInfo(data = {}) { return await http.get('/course/courseInfo', data); }, //教研管理文章列表 async teachingResearchList(data = {}) { return await http.get('/teachingResearch/list', data); }, //教研管理文章详情 async teachingResearchInfo(id) { return await http.get('/teachingResearch/info/' + id); }, //获取能看的教研管理类型 async teachingResearchLookType(data = {}) { return await http.get('/teachingResearch/lookType', data); }, //获取试卷 async getTeachingTestPaper(data = {}) { return await http.get('/teachingResearch/teachingTestPaper', data); }, //提交试卷 async submitTestPaper(data = {}) { return await http.get('/teachingResearch/submitTestPaper', data); }, //↓↓↓↓↓↓↓↓↓↓↓↓-----销售接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓ //修改销售端个人资料 async editPersonnel(data = {}) { return await http.get('/personnel/info', data); }, //销售端-客户资源-添加 async xs_addCustomerResources(data = {}) { return await http.post('/customerResources/add', data); }, //销售端-客户资源-编辑 async xs_editCustomerResources(data = {}) { return await http.post('/customerResources/edit', data); }, //销售端-查询客户资源全部列表 async xs_getAllCustomerResources(data = {}) { return await http.get('/customerResources/getAll', data); }, //销售端-客户资源-获取修改日志列表 async xs_customerResourcesGetEditLogList(data = {}) { return await http.get('/customerResources/getEditLogList', data); }, //销售端-资源共享-列表 async xs_resourceSharingIndex(data = {}) { return await http.get('/resourceSharing/index', data); }, //销售端-资源共享-分配员工 async xs_resourceSharingAssign(data = {}) { return await http.post('/resourceSharing/assign', data); }, //销售端-资源共享-详情(客户资源详情) async xs_resourceSharingInfo(data = {}) { return await http.get('/resourceSharing/info', data); }, //销售端-沟通记录-添加 async xs_communicationRecordsAdd(data = {}) { return await http.post('/communicationRecords/add', data); }, //销售端-获取好友关系绑定详情 async xs_chatGetChatFriendsInfo(data = {}) { return await http.get('/chat/getChatFriendsInfo', data); }, //销售端-获取聊天消息列表 async xs_chatGetChatMessagesList(data = {}) { return await http.get('/chat/getChatMessagesList', data); }, //销售端-发送聊天消息 async xs_chatSendChatMessages(data = {}) { return await http.post('/chat/sendChatMessages', data); }, //销售端-好友关系列表 async xs_chatGetChatFriendsList(data = {}) { return await http.get('/chat/getChatFriendsList', data); }, //员工端统计(销售)-获取销售首页数据统计 async xs_statisticsMarketHome(data = {}) { return await http.get('/statistics/marketHome', data); }, //员工端统计(销售)-获取销售数据页统计 async xs_statisticsMarketData(data = {}) { return await http.get('/statistics/marketData', data); }, //员工端(销售)-订单管理-列表 async xs_orderTableList(data = {}) { return await http.get('/orderTable', data); }, //员工端(销售)-订单管理-详情 async xs_orderTableInfo(data = {}) { return await http.get('/orderTable/info', data); }, //员工端(销售)-订单管理-添加 async xs_orderTableAdd(data = {}) { return await http.post('/orderTable/add', data); }, //↓↓↓↓↓↓↓↓↓↓↓↓-----学生接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓ //学生登陆接口 async xy_login(data = {}) { const response = await http.post('/customerResourcesAuth/login', data); console.log('学生登录响应:', response); return response; }, //学生详情 async xy_memberInfo(data = {}) { return await http.get('/customerResourcesAuth/info', data); }, //学生详情-修改 async xy_memberEdit(data = {}) { return await http.post('/customerResourcesAuth/edit', data); }, //学生-意见反馈-添加 async xy_userFeedbackAdd(data = {}) { return await http.post('/userFeedback/add', data); }, //学生端-获取好友关系绑定详情 async xy_chatGetChatFriendsInfo(data = {}) { return await http.get('/xy/chat/getChatFriendsInfo', data); }, //学生端-获取聊天消息列表 async xy_chatGetChatMessagesList(data = {}) { return await http.get('/xy/chat/getChatMessagesList', data); }, //学生端-发送聊天消息 async xy_chatSendChatMessages(data = {}) { return await http.post('/xy/chat/sendChatMessages', data); }, //学生端-好友关系列表 async xy_chatGetChatFriendsList(data = {}) { return await http.get('/xy/chat/getChatFriendsList', data); }, //学生端-体测报告-列表 async xy_physicalTest(data = {}) { return await http.get('/xy/physicalTest', data); }, //学生端-体测报告-详情 async xy_physicalTestInfo(data = {}) { return await http.get('/xy/physicalTest/info', data); }, //学生端-学生课程安排-列表 async xy_personCourseSchedule(data = {}) { return await http.get('/xy/personCourseSchedule', data); }, //学生端-学生课程安排-详情 async xy_personCourseScheduleInfo(data = {}) { return await http.get('/xy/personCourseSchedule/info', data); }, //学生端-学生课程安排-修改请假状态 async xy_personCourseScheduleEditStatus(data = {}) { return await http.post('/xy/personCourseSchedule/editStatus', data); }, //学生端-学生课程安排-获取排课日历 async xy_personCourseScheduleGetCalendar(data = {}) { return await http.get('/xy/personCourseSchedule/getCalendar', data); }, //学生端-学生课程安排-获取学生排课的全部场地列表 async xy_personCourseScheduleGetVenueListAll(data = {}) { return await http.get('/xy/personCourseSchedule/getVenueListAll', data); }, //学生端-学生课程安排-获取学生排课的全部场地列表 async xy_personCourseScheduleGetMyCoach(data = {}) { return await http.get('/xy/personCourseSchedule/getMyCoach', data); }, //学生端-学生课程安排-获取学生课程消耗记录列表 async xy_personCourseScheduleGetStudentCourseUsageList(data = {}) { return await http.get('/xy/personCourseSchedule/getStudentCourseUsageList', data); }, //学生端-获取作业列表 async xy_assignment(data = {}) { return await http.get('/xy/assignment', data); }, //学生端-获取作业详情 async xy_assignmentsInfo(data = {}) { return await http.get('/xy/assignment/info', data); }, //学生端-提交作业 async xy_assignmentSubmitObj(data = {}) { return await http.get('/xy/assignment/submitObj', data); }, //学生端-订单管理-列表 async xy_orderTableList(data = {}) { return await http.get('/xy/orderTable', data); }, //学生端-订单管理-详情 async xy_orderTableInfo(data = {}) { return await http.get('/xy/orderTable/info', data); }, //学生端-订单管理-添加 async xy_orderTableAdd(data = {}) { return await http.post('/xy/orderTable/add', data); } }