feat : role And permission

This commit is contained in:
2025-09-06 14:50:02 +03:30
parent bdf5344451
commit 34609d22a1
34 changed files with 657 additions and 306 deletions

View File

@@ -125,7 +125,7 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
call: () async => authRepository.login(authRequest: loginRequestModel.toJson()),
onSuccess: (result) async {
await tokenStorageService.saveModule(_module);
await tokenStorageService.saveRefreshToken(result?.refresh ?? '');
/*await tokenStorageService.saveRefreshToken(result?.refresh ?? '');
await tokenStorageService.saveAccessToken(result?.access ?? '');
if (rememberMe.value) {
await tokenStorageService.saveUserPass(
@@ -135,7 +135,7 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
module: _module,
),
);
}
}*/
Get.offAllNamed(InspectionRoutes.init);
},

View File

@@ -11,7 +11,12 @@ class AuthPage extends GetView<AuthLogic> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
body:PopScope(
canPop: false,
onPopInvokedWithResult: (didPop, result) {
Get.back(result: -1);
},
child: Stack(
alignment: Alignment.center,
fit: StackFit.expand,
@@ -98,7 +103,7 @@ class AuthPage extends GetView<AuthLogic> {
);
}),
],
),
)),
);
}