
com.runjf.mybatis.crud.BaseService Maven / Gradle / Ivy
package com.runjf.mybatis.crud;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 提供基础的增删查改
*
* Created by rjf on 2018/5/13.
*/
public interface BaseService {
T create(T entity);
T get(ID id);
List getByIds(List ids);
T update(T entity);
void delete(ID... ids);
Page getPage(Pageable pageable);
Page getPageByParams(T params, Pageable pageable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy