Commit Graph

34 Commits

Author SHA1 Message Date
morteza 89ed4c90de create admin 2025-11-25 16:22:46 +03:30
morteza 1d76bdcd80 admins 2025-11-25 16:17:28 +03:30
morteza bd8c64f7c4 isSystem: false 2025-11-24 20:39:23 +03:30
morteza 9996ea3b09 update auth 2025-11-24 16:08:16 +03:30
morteza e79040d81e fix bug in admin 2025-11-24 11:34:54 +03:30
morteza 08e2da0e5c shipment methods 2025-11-23 16:16:10 +03:30
morteza d894bae756 shipment methods 2025-11-23 15:25:36 +03:30
morteza a3f0593443 update 2025-11-23 14:48:58 +03:30
morteza 7dd1b61cac update admin 2025-11-23 12:22:17 +03:30
morteza 7a53f0fa1b create admin 2025-11-22 12:52:28 +03:30
morteza 8e63213f1d remove rest id from creating 2025-11-22 12:46:26 +03:30
morteza dec9b6c2c5 up 2025-11-19 00:02:49 +03:30
morteza e620dd6e04 Integrate RestaurantsModule into AdminModule; enhance AdminRepository to find admins by phone and restaurant slug using AdminRole; update AuthService to throw specific exception message when admin not found; correct last name in DatabaseSeeder for consistency. 2025-11-19 00:00:48 +03:30
morteza fdaa8b3dfd Enhance CategoryController and CategoryService to enforce admin-only access for category management; introduce restaurant-specific handling by adding RestId parameter to relevant methods; implement new endpoint for retrieving categories by restaurant for user access. 2025-11-18 23:44:28 +03:30
morteza 8a217f6034 Add AdminId decorator for extracting adminId from requests; refactor AdminController to utilize new decorator for fetching admin details and restaurant-specific admins; update AdminService to handle admin creation and retrieval by restaurant; remove unused role and permission entities for cleaner architecture. 2025-11-18 16:45:44 +03:30
morteza 9abab789fc Refactor Admin module by removing role and permission controllers, services, and DTOs; update imports to utilize Roles module for role and permission entities; adjust AdminService and AdminModule accordingly. 2025-11-18 15:43:24 +03:30
morteza 0407d4c05a Add permissions handling to AdminAuthGuard and RoleController; refactor DatabaseSeeder to utilize enums for permissions 2025-11-18 15:24:20 +03:30
morteza 3fc7cccb80 Update RoleService to use nativeUpdate for soft delete functionality, ensuring more efficient database operations when marking roles as deleted. 2025-11-18 13:00:03 +03:30
morteza 81fa0ca2b9 Refactor RoleService to implement soft delete functionality for roles by updating the deletedAt timestamp instead of hard deletion; streamline role filtering logic for improved readability. 2025-11-18 11:04:44 +03:30
morteza 2da66cdd86 Implement 'getMe' endpoint in AdminController to retrieve current admin details; update AdminService to return transformed admin details and adjust findById method for improved data handling. Remove unused user profile retrieval method from AdminUserController. 2025-11-18 10:58:28 +03:30
morteza 1010c8d20a Add 'title' property to Permission entity; update DatabaseSeeder to include Persian titles for permissions, enhancing localization support. 2025-11-18 10:37:55 +03:30
morteza 6f22dddcec Enhance role management by adding 'title' property to CreateRoleDto, UpdateRoleDto, and Role entity; update RoleService to handle title in create and update operations; modify DatabaseSeeder to include titles for predefined roles. 2025-11-18 10:24:45 +03:30
morteza 746769a735 Add authentication guards and API documentation to admin and restaurant controllers; update restaurant service for soft delete; enhance database seeder with new permissions and roles 2025-11-18 00:37:43 +03:30
morteza e2b2a746f7 login 2025-11-18 00:20:15 +03:30
morteza 607e2ec2cf Enhance AdminService with caching for admin permissions and add UtilsModule to AdminModule imports 2025-11-17 23:59:57 +03:30
morteza 7bd2b59cb1 Refactor admin module structure: moved services and controllers to providers and controllers directories, added PermissionService and PermissionController, updated Admin entity relationships, and created AdminRole entity. 2025-11-17 23:04:28 +03:30
morteza b3c44d734c update 2025-11-16 12:07:39 +03:30
morteza d605303e52 role 2025-11-16 11:07:14 +03:30
morteza 53ef6220c1 up 2025-11-15 09:01:32 +03:30
morteza 440c3721ce role perms 2025-11-12 09:28:56 +03:30
morteza e34b93aa83 refresh token 2025-11-11 09:50:18 +03:30
morteza bca4b75b6a update 2025-11-10 22:42:32 +03:30
morteza 45ca2fde06 user 2025-11-10 12:39:41 +03:30
morteza 06f814b331 init 2025-11-09 11:25:26 +03:30