chore : change to common -> chicken

This commit is contained in:
2025-09-13 12:34:34 +03:30
parent 2b6400adbf
commit b179cb8e92
6 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
import 'package:rasadyar_core/core.dart';
class RoleLogic extends GetxController {
TokenStorageService tokenService = Get.find<TokenStorageService>();
GService gService = Get.find<GService>();
RxList<String> roles = <String>[].obs;
@override
void onInit() {
super.onInit();
List<String> items = tokenService.getUserLocal(Module.chicken)!.roles ?? [];
if (items.isNotEmpty ?? false) {
roles.assignAll(items);
}
}
@override
void onReady() {
// TODO: implement onReady
super.onReady();
}
@override
void onClose() {
// TODO: implement onClose
super.onClose();
}
}