package cn.wisenergy.mapper;

import cn.wisenergy.model.app.userLikes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户点赞记录表
 * Created by m1991 on 2021/3/15 12:54
 */
@Mapper
public interface userLikesMapper extends BaseMapper<userLikes> {

    /**
     * userId查询用户点赞记录
     * @param userLikeId
     * @return
     */
    userLikes selectlikes(@Param("userLikeId") String userLikeId, @Param("likedId") int likedId);

    /**
     * 添加点赞记录
     * @return
     */
    int addlikes(@Param("userLikeId") String userLikeId,@Param("likedId")int likedId,@Param("likedStaus")int likedStaus,@Param("likedType")int likedType);
}
