sample_dart_sdk/lib/sdk/services/base.dart

12 lines
190 B
Dart
Raw Normal View History

2022-10-28 10:10:46 +07:00
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);
}