新增e2e测试脚本,修复部分问题
This commit was merged in pull request #51.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user