package com.ssj.dao.sys.schoolmatecircle.dao;

import com.ssj.bean.sys.schoolmatecircle.domain.SchoolmateLike;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Mount Liu
 * @date 2018/8/15
 */
@Repository
public interface SchoolmateLikeDao extends JpaRepository<SchoolmateLike, String> {
    /**
     * 查询点赞记录
     * @param headId
     * @param userId
     * @return
     */
    List<SchoolmateLike> findAllByHeadIdAndUserId(String headId,String userId);
}
