{"size": 395, "ext": "js", "max_stars_repo_path": "APITest/controller/manage/lesson/handleGetLesson.js", "max_stars_repo_name": "zlxiao97/GraduationProject", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "APITest/controller/manage/lesson/handleGetLesson.js", "max_issues_repo_name": "zlxiao97/GraduationProject", "max_issues_repo_issues_event_min_datetime": "2021-05-11T01:09:23.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-06T10:41:40.000Z", "max_forks_repo_path": "APITest/controller/manage/lesson/handleGetLesson.js", "max_forks_repo_name": "zlxiao97/GraduationProject", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 28.2142857143, "max_line_length": 72, "alphanum_fraction": 0.6025316456}
const { read, getTotal } = require("../../../model/model.js")("lesson");

module.exports = (current, pageSize, course_id) => {
  return (async (current, pageSize, course_id) => {
    const data = await read(current, pageSize, { course_id });
    const totle = await getTotal({ course_id });
    return {
      totle,
      success: true,
      data
    };
  })(current, pageSize, course_id);
};
