新增e2e测试脚本,修复部分问题

This commit was merged in pull request #51.
This commit is contained in:
2026-07-22 20:00:13 +08:00
parent 53d1ce6fb2
commit 4c07ec5455
105 changed files with 21700 additions and 318 deletions
+19 -1
View File
@@ -42,11 +42,29 @@ function getCoachViolations(coachId) {
return http.get('/coach/' + coachId + '/violations')
}
/**
* 获取课程的预约列表(实时预约人数)
*/
function getCourseBookings(courseId) {
return http.get('/groupCourse/bookings/course/' + courseId)
}
/**
* 获取教练业绩统计
* @param {number} coachId - 教练ID
* @param {string} periodType - 统计周期: MONTH / WEEK
*/
function getCoachPerformance(coachId, periodType) {
return http.get('/datacount/coach-performance/' + coachId + '?periodType=' + (periodType || 'MONTH'))
}
module.exports = {
login,
getCoachCourses,
startCourse,
endCourse,
getCourseDetail,
getCoachViolations
getCoachViolations,
getCourseBookings,
getCoachPerformance
}