package com.copy.trade.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.copy.trade.entity.form.TraderQueryForm;
import com.copy.trade.entity.po.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
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 CustomerMapper extends BaseMapper<Customer> {

    List<TraderVo> traderList(@Param("page") Page page, @Param("traderQueryForm") TraderQueryForm traderQueryForm);

    List<TraderVo> topTraderList(@Param("page") Page page, @Param("traderQueryForm") TraderQueryForm traderQueryForm);

    TraderVo traderInfo(@Param("traderId") Long traderId);

    Boolean cancelTrader(@Param("traderId") Long traderId);

}
