mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 07:22:27 +00:00
Add ReorderSpacesParam and ReorderSpacesService for managing space reordering functionality.
This commit is contained in:
@ -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];
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
Reference in New Issue
Block a user