import java.util.List;
public interface BaseService {
public <T> Integer addInfo(T t) throws Exception;
public <T> void deleteInfo(T t) throws Exception;
public <T> void updateInfo(T t) throws Exception;
public <T> T findInfoById(Integer id) throws Exception;
public <T> T findInfo(T t) throws Exception;
public <T> List<T> findInfos(T t) throws Exception;
public <T> List<T> findInfosForBack(T t) throws Exception;
public <T> Integer findInfosForBackCount(T t) throws Exception;
public <T> List<T> findInfosForIndex(T t) throws Exception;
public <T> Integer findInfosForIndexCount(T t) throws Exception;
}
泛型服务层基本模板
最新推荐文章于 2021-08-11 19:21:53 发布