sample_dart_sdk/lib/sdk/services/base.dart

12 lines
190 B
Dart

abstract class BaseService<T, ID> {
Future<List<T>> findAll();
Future<T> findById(ID id);
Future<T> create(T entity);
Future<T> update(T entity);
Future<void> delete(ID id);
}