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

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.ssj.bean.sys.schoolmatecircle.domain.SchoolmateCircle;
import com.ssj.framework.core.common.service.BaseService;

import java.util.Map;
/**
 * @author Mount Liu
 * @date 2018/8/15
 */
public interface SchoolmateCircleService extends BaseService<SchoolmateCircle, String> {

    /**
     * 根据id查询同学圈信息
     * @param id
     * @param userId
     * @return
     */
    Map<String, Object> findCircleById(String id, String userId);
    /**
     * 分页查询同学圈列表
     * @param params
     * @param sp
     * @return
     */
    Page<Map<String, Object>> findByPage(Map<String, Object> params, Pageable sp);

    /**
     * 采纳解答
     * @param commnetId
     */
    void acceptSolution(String commnetId);


}
