package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.vo.CourseHomeworkDetailVo;
import com.yonge.cooleshow.biz.dal.vo.StudentCourseHomeworkVo;
import com.yonge.cooleshow.biz.dal.dto.search.StudentCourseHomeworkSearch;
import com.yonge.cooleshow.biz.dal.entity.StudentCourseHomework;

/**
 * 学生课程作业 服务类
 * @author liweifan
 * @date 2022-03-30
 */
public interface StudentCourseHomeworkService extends IService<StudentCourseHomework>  {

	/**
     * 查询详情
     * @author liweifan
 	 * @date 2022-03-30
     */
	StudentCourseHomeworkVo detail(Long id);

    /**
     * 分页查询
     * @author liweifan
 	 * @date 2022-03-30
     */
    IPage<StudentCourseHomeworkVo> selectPage(IPage<StudentCourseHomeworkVo> page, StudentCourseHomeworkSearch query);

	/**
	 *  老师点评
	 *
	 * @param studentHomeworkId 学生作业id
	 * @param review 点评信息
	 * @return boolean
	 */
    boolean reviewCourseHome(Long studentHomeworkId, String review);

	/**
	 * 学生提交作业
	 *
	 * @param courseHomeworkDetailVo 课程作业信息
	 * @param submit 提交信息
	 * @return boolean
	 */
	boolean submitCourseHome(CourseHomeworkDetailVo courseHomeworkDetailVo, String submit, Long studentId);
}