Add ReorderSpacesParam and ReorderSpacesService for managing space reordering functionality.

This commit is contained in:
Faris Armoush
2025-07-21 15:57:20 +03:00
parent 7af8887d4f
commit c65f4a7fab
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,17 @@
import 'package:equatable/equatable.dart';
import 'package:syncrow_web/pages/spaces_management/all_spaces/model/space_model.dart';
class ReorderSpacesParam extends Equatable {
const ReorderSpacesParam({
required this.spaces,
required this.communityUuid,
required this.parentSpaceUuid,
});
final List<SpaceModel> spaces;
final String communityUuid;
final String parentSpaceUuid;
@override
List<Object?> get props => [spaces, communityUuid, parentSpaceUuid];
}

View File

@ -0,0 +1,5 @@
import 'package:syncrow_web/pages/space_management_v2/modules/reorder_spaces/domain/params/reorder_spaces_param.dart';
abstract interface class ReorderSpacesService {
Future<void> reorderSpaces(ReorderSpacesParam param);
}