19 lines
390 B
Dart
19 lines
390 B
Dart
part of '../table.dart';
|
|
|
|
abstract class ITableRepository {
|
|
Future<Either<TableFailure, ListTable>> fetchTables({
|
|
int page = 1,
|
|
int limit = 50,
|
|
});
|
|
|
|
Future<Either<TableFailure, Table>> createTable({
|
|
required String name,
|
|
required int capacity,
|
|
});
|
|
|
|
Future<Either<TableFailure, Table>> updatePosition({
|
|
required String id,
|
|
required Offset position,
|
|
});
|
|
}
|