package com.matrix.system.hive.plugin.util;
|
|
import com.matrix.core.pojo.PaginationVO;
|
|
import java.util.List;
|
|
public interface BaseServices<T> {
|
/**
|
* 新增Function
|
*
|
*/
|
public int add(T obje);
|
|
/**
|
* 更新Function
|
*
|
*/
|
public int modify(T obje);
|
|
/**
|
* 批量删除Function
|
*
|
*/
|
public int remove(List<Long> list);
|
|
/**
|
* 根据id删除Function
|
*
|
*/
|
public int removeById(Long id);
|
|
/**
|
* 分页查询Function
|
*
|
*/
|
public List<T> findInPage(T obje, PaginationVO pageVo);
|
|
/**
|
* 根据对象查询Function
|
*
|
*/
|
public List<T> findByModel(T obje);
|
|
/**
|
* 统计记录数Function
|
*
|
*/
|
public int findTotal(T obje);
|
|
/**
|
* 根据id查询Function
|
*
|
*/
|
public T findById(Long id);
|
|
|
|
}
|