userLikesMapper.java 770 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
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);
}