package jnpf.cultivate.mapper;

import jnpf.base.mapper.SuperMapper;
import jnpf.model.cultivate.po.gained.FtbCourseGainedLikeEntity;
import org.apache.ibatis.annotations.Param;

/**
 *
 * 心得点赞 Mapper 接口
 *
 */
public interface FtbCourseGainedLikeMapper extends SuperMapper<FtbCourseGainedLikeEntity> {


    /**
     * 获取用户有无对该心得点赞
     * @param GainedId 心得id
     * @param likeUserId 用户id
     * @return 返回值
     */
    Integer getMyLike(@Param("GainedId") String GainedId , @Param("likeUserId") String likeUserId);

    /**
     *删除指定用户在指定心得下的点赞
     * @param gainedId 心得id
     * @param likeUserId 用户id
     */
    void deleteLikeByGainedId(@Param("gainedId") String gainedId, @Param("likeUserId") String likeUserId);
}
