package com.ssj.service.sys.compositioncomment.service;

import com.ssj.bean.sys.compositioncomment.domain.CompositionComment;
import com.ssj.framework.core.common.service.BaseService;

import java.util.List;

/**
 * @author yrf
 * @description
 * @time 2019/8/27 17:03
 */
public interface CompositionCommentService extends BaseService<CompositionComment, String> {

    /**
     * 根据作业图片id删除作文评语
     * @param homeworkPictureId 图片id
     */
    void deleteByHomeworkPictureId(String homeworkPictureId);

    /**
     * 根据作业图片id查询作文评语
     * @param homeworkPictureId 图片id
     */
    List<CompositionComment> findByHomeworkPictureId(String homeworkPictureId);
}
