package com.ym.mec.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ym.mec.education.base.BaseResponse;
import com.ym.mec.education.base.PageResponse;
import com.ym.mec.education.entity.StudentAttendance;
import com.ym.mec.education.req.AttendClassReq;
import com.ym.mec.education.req.ClassGroupReq;
import com.ym.mec.education.req.CourseScheduleReq;
import com.ym.mec.education.req.HomeWorkReq;

/**
 * <p>
 * 学生考勤表 服务类
 * </p>
 *
 * @author lemeng
 * @since 2019-09-25
 */
public interface IStudentAttendanceService extends IService<StudentAttendance> {

    PageResponse getPage(ClassGroupReq classGroupReq);

    /**
     * 点名详情-最新学生考勤列表
     *
     * @param courseScheduleReq
     * @return
     */
    PageResponse getPageByCourse(CourseScheduleReq courseScheduleReq);

    /**
     * 历史考勤统计-列表
     * @param classGroupReq
     * @return
     */
    PageResponse statisticsList(ClassGroupReq classGroupReq);

    /**
     * 学员上课记录
     * @param req
     * @return
     */
    PageResponse attendRecordList(AttendClassReq req);

    /**
     * 点名记录
     * @param req
     * @return
     */
    PageResponse callStudent(HomeWorkReq req);

    /**
     * 签退签到
     * @param req
     * @return
     */
    BaseResponse signInfo(HomeWorkReq req);
}
