Commit Graph

88 Commits

Author SHA1 Message Date
morteza af1028265d rest today schedule 2025-11-22 14:52:36 +03:30
morteza 7ad0e03162 get resturent by slug 2025-11-22 14:46:20 +03:30
morteza ee723c1c55 foods and ctegory 2025-11-22 14:36:07 +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 9845b5e017 update role 2025-11-22 12:40:37 +03:30
morteza 0da07417c4 role 2025-11-22 12:28:26 +03:30
morteza aa13cdcbba perms 2025-11-22 12:08:30 +03:30
morteza 685aee494a refresh token 2025-11-22 11:55:02 +03:30
morteza e411a53407 up 2025-11-22 11:47:58 +03:30
morteza cab0c75158 up 2025-11-22 11:38:07 +03:30
morteza 6905fb2cdc bug 2025-11-22 11:27:30 +03:30
morteza 0711e56a7e sort rest schedule 2025-11-22 11:26:16 +03:30
morteza 2ea6b819e2 up 2025-11-22 11:11:06 +03:30
morteza ee1e6049c5 remove graph 2025-11-22 10:49:31 +03:30
morteza 2c0ab601f3 payment 2025-11-21 18:37:09 +03:30
morteza e2a04e6a50 bug 2025-11-21 17:19:30 +03:30
morteza a8f2f4b50c bug 2025-11-21 16:31:04 +03:30
morteza 7505c29c78 auth graph 2025-11-21 16:27:49 +03:30
morteza 89593d0f2e up 2025-11-21 15:48:38 +03:30
morteza f07837cfdb up 2025-11-19 01:00:07 +03:30
morteza f97e95bca6 bug 2025-11-19 00:55:09 +03:30
morteza bf5b50a3a2 bug 2025-11-19 00:44:11 +03:30
morteza ef87a1ae6d up 2025-11-19 00:27:20 +03:30
morteza d764a67fec up 2025-11-19 00:21:58 +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 b9d0904577 Refactor RolesController and RolesService to include restaurant-specific handling by adding RestId parameter to relevant methods; remove optional restaurant ID properties from DTOs for cleaner design; implement soft delete logic in remove method to ensure proper role management. 2025-11-18 23:11:45 +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 89b86505ec update restaurant 2025-11-18 14:37:10 +03:30
morteza a53c0a5b13 Refactor AdminAuthController and AuthService to implement admin-specific token refresh functionality; update TokensService to handle refresh token logic with improved transaction management and error handling. 2025-11-18 14:29:00 +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 c24775d091 cart 2025-11-18 12:55:37 +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 82f5cae16f Add images property to CreateRestaurantDto and Restaurant entity; update UploaderController with AdminAuthGuard and API tags for enhanced security and documentation. 2025-11-18 10:30:45 +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 7bc94b4126 Remove User and AdminUser controllers; update import paths in UserModule to reflect new directory structure. 2025-11-18 09:33:50 +03:30
morteza 8975a9fcc7 Implement restaurant ID handling in schedule operations; add AdminAuthGuard for access control; enhance schedule service with validation for existing schedules and restaurant existence checks. 2025-11-18 09:21:37 +03:30
morteza dcce6cfdda Refactor Auth and Restaurants modules to use forward references for circular dependency resolution; import JwtModule in RestaurantsModule. 2025-11-18 09:03:14 +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 e699a961be seed 2025-11-17 23:44:45 +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