package com.copy.trade.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.copy.trade.entity.po.Follow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.copy.trade.entity.vo.FollowerVo;
import com.copy.trade.entity.vo.TraderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 跟随表 Mapper 接口
 * </p>
 *
 * @author wz
 * @since 2022-11-08
 */
public interface FollowMapper extends BaseMapper<Follow> {

    List<TraderVo> followingList(@Param("page") Page page,@Param("customerId") Long customerId);

    List<FollowerVo> followers(@Param("page") Page page, @Param("traderId") Long traderId);
    
    //Integer followerCount(@Param("traderId") Long traderId);
    
    Integer isFollowSpecailTrader(@Param("customerId") Long customerId);

}
