package com.ssj.service.conch.teacher.service;

import java.util.List;
import java.util.Map;

import com.ssj.bean.weixin.zyb.domain.ZuoybStudentPush;
import com.ssj.service.conch.teacher.dto.HomeworkDataDto;
import com.ssj.service.conch.teacher.dto.TotalitySituationAdapter;
import com.ssj.service.conch.teacher.request.zyb.HomeworkDataSaveRequest;
import com.ssj.service.conch.teacher.request.zyb.SubjectImageSubmitRequest;

/**
 * @author chchen
 * @date 2018/9/21 13:24
 */
public interface TzybHomeworkService {
    /**
     * 保存打分项
     * @param request 保存参数
     * @return
     */
    Map<String, Object> saveHomeworkSituation (String userId, HomeworkDataSaveRequest request);
    
    /**
     * @param userId
     * @param request
     * @return
    
     * 方法说明:在馆老师预览保存作业反馈报告
    
     * 创立日期:2019年4月17日 下午3:16:01
     * 创建人:yangcan
    
     */
    Map<String, Object> saveStudentHomeworkFeedback(String userId, HomeworkDataSaveRequest request);

    /**
     * 保存总体的学习情况
     * @param pushId 推送报告的id
     * @param picture 作业登记图片
     * @param totality 总体情况，报告学习状态，老师留言
     * @return
     */
    ZuoybStudentPush saveTotalitySituation (String pushId, List<String> picture, String suggest, TotalitySituationAdapter totality, String userId);

    /**
     * 获取当天作业数据
     * @param studentId 学生id
     * @param date 日期，默认当天
     * @param userId 老师id
     * @return
     */
    HomeworkDataDto getHomeworkData(String studentId, String date, String userId);

    /**
     * 查询今天的记录，如果没有则新增
     * @param vipId 学生id
     * @return
     */
    ZuoybStudentPush createTodayPush (String vipId, String userId);

    /**
     * 删除一个作业图片
     * @param pid 原图图片id
     * @return
     */
    boolean deleteOnePicture (String pid);



    /**
     * 老师提交作业报告
     * @param pushId
     * @return
     */
    boolean submitReport(String pushId);

    /**
     * 老师提交单科作业成功
     * @param request
     * @return
     */
    Map<String, Object> saveSubjectHomework(SubjectImageSubmitRequest request, String userId);
}
