feat: integrate GService into various root logic classes and log user roles during initialization
This commit is contained in:
@@ -12,6 +12,7 @@ class KillHouseRootLogic extends GetxController {
|
||||
RxInt currentPage = 1.obs;
|
||||
|
||||
var tokenService = Get.find<TokenStorageService>();
|
||||
var gService = Get.find<GService>();
|
||||
|
||||
late KillHouseRepository killHouseRepository;
|
||||
|
||||
@@ -19,6 +20,7 @@ class KillHouseRootLogic extends GetxController {
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
killHouseRepository = diChicken.get<KillHouseRepository>();
|
||||
fLog('gService: ${gService.getRole(Module.chicken)}');
|
||||
}
|
||||
|
||||
final pages = [
|
||||
|
||||
@@ -30,6 +30,7 @@ class WarehouseAndDistributionRootLogic extends GetxController {
|
||||
|
||||
late DioRemote dioRemote;
|
||||
var tokenService = Get.find<TokenStorageService>();
|
||||
var gService = Get.find<GService>();
|
||||
|
||||
RxInt currentPage = 2.obs;
|
||||
List<Widget> pages = [
|
||||
@@ -68,6 +69,7 @@ class WarehouseAndDistributionRootLogic extends GetxController {
|
||||
super.onInit();
|
||||
|
||||
killHouseRepository = diChicken.get<KillHouseRepository>();
|
||||
fLog('gService: ${gService.getRole(Module.chicken)}');
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user