package com.gxwebsoft.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.shop.entity.UserFollow;
import com.gxwebsoft.shop.param.UserFollowParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 关注记录表Mapper
 *
 * @author 科技小王子
 * @since 2022-11-25 19:04:43
 */
public interface UserFollowMapper extends BaseMapper<UserFollow> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<UserFollow>
     */
    List<UserFollow> selectPageRel(@Param("page") IPage<UserFollow> page,
                             @Param("param") UserFollowParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<UserFollow> selectListRel(@Param("param") UserFollowParam param);

}
