50,530
社区成员
发帖
与我相关
我的任务
分享
public interface IAService {
// 与IBService接口中相似的方法
public List<A> findAll();
public A findByPrimaryKey(Integer key);
public Integer insert(A pojo);
public Integer updateByPrimaryKey(A pojo);
public Integer deleteByPrimaryKey(Integer key);
}
public interface IBService {
// 与IAService接口中相似的方法
public List<B> findAll();
public B findByPrimaryKey(Integer key);
public Integer insert(B pojo);
public Integer updateByPrimaryKey(B pojo);
public Integer deleteByPrimaryKey(Integer key);
}
public interface IServiceBean<T> {
public List<T> findAll();
public T findByPrimaryKey(Object key);
public Integer insert(T pojo);
public Integer updateByPrimaryKey(T pojo);
public Integer deleteByPrimaryKey(Object key);
}
public interface IAService extends IServiceBean<A>{
// 定义A的Serivce自己特有的业务方法
}
public interface IBService extends IServiceBean<B> {
// 定义B的Serivce自己特有的业务方法
}