25 lines
534 B
Dart
Raw Normal View History

2025-10-26 16:09:56 +07:00
part of '../table.dart';
abstract class ITableRepository {
Future<Either<TableFailure, ListTable>> fetchTables({
int page = 1,
int limit = 50,
2025-10-26 19:36:59 +07:00
String? status,
2025-10-26 16:09:56 +07:00
});
2025-10-26 18:47:51 +07:00
Future<Either<TableFailure, Table>> createTable({
required String name,
required int capacity,
});
Future<Either<TableFailure, Table>> updatePosition({
required String id,
required Offset position,
});
2025-10-26 19:36:59 +07:00
Future<Either<TableFailure, Unit>> transferTable({
required String fromTableId,
required String toTableId,
});
2025-10-26 16:09:56 +07:00
}