package com.ssj.service.sys.schoolmatecircle.service;

import com.ssj.bean.sys.schoolmatecircle.domain.SchoolmateComment;
import com.ssj.framework.core.common.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * @author Mount Liu
 * @date 2018/8/15
 */
public interface SchoolmateCommentService extends BaseService<SchoolmateComment, String> {


    /**
     * 分页查询一级评论列表
     * @param searchParams
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findFirstCommentByPage(Map<String, Object> searchParams, Pageable pageable);

    /**
     * 分页查询评论列表
     * @param searchParams
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findCommentByPage(Map<String, Object> searchParams, Pageable pageable);
}
