part of 'admin_users_bloc.dart';

abstract class AdminUsersEvent {}

class AdminUsersLoadRequested extends AdminUsersEvent {
  final int page;
  final int size;
  final String? search;
  AdminUsersLoadRequested({this.page = 0, this.size = 20, this.search});
}

class AdminUserDetailRequested extends AdminUsersEvent {
  final String userId;
  AdminUserDetailRequested(this.userId);
}

/// Charge détail utilisateur + liste complète des rôles (pour édition)
class AdminUserDetailWithRolesRequested extends AdminUsersEvent {
  final String userId;
  AdminUserDetailWithRolesRequested(this.userId);
}

class AdminUserRolesUpdateRequested extends AdminUsersEvent {
  final String userId;
  final List<String> roleNames;
  AdminUserRolesUpdateRequested(this.userId, this.roleNames);
}

class AdminRolesLoadRequested extends AdminUsersEvent {}
