package com.copy.trade.dao;

import com.copy.trade.entity.form.AgentStudentPositionForm;
import com.copy.trade.entity.form.StudentPositionForm;
import com.copy.trade.entity.po.Follow;
import com.copy.trade.entity.vo.FollowerAgentVo;
import com.copy.trade.entity.vo.FollowerVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

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

	List<Long> followering(Long traderId);
	
	List<FollowerVo> followers(@Param("page") Page page, @Param("studentPositionForm") StudentPositionForm studentPositionForm);
	
	List<FollowerAgentVo> followersAgent(@Param("page") Page page, @Param("agentStudentPositionForm") AgentStudentPositionForm agentStudentPositionForm);
}
