package top.imwork.commons.dao.base;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

/**
 * Copyright (C), 2015-2020
 * FileName: BaseDao
 * Author:   imwork
 * Date:     2020/8/13 21:56
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
public interface BaseDao<T> extends BaseMapper<T> {
    T info(Long id);

    IPage<T> queryPage(IPage<T> page, @Param(Constants.WRAPPER) Wrapper<T> wrapper);

    int deleteByIds(String[] ids);
}
