Commit Graph

70 Commits

Author SHA1 Message Date
Habib Fatkhul Rohman 98bdfce83a feat(user): Add username support for login and implement username checks in repository 2025-10-28 22:29:56 +07:00
Habib Fatkhul Rohman 62a188fcc6 feat(permissions): Implement permissions management with CRUD operations and routing 2025-10-28 21:26:58 +07:00
Habib Fatkhul Rohman 2020a906fc fix(repository): Change Save to Updates in Update method for better handling of menu updates 2025-10-28 20:48:19 +07:00
Habib Fatkhul Rohman 8fe0448aa8 feat(dto): Add Permissions field to MenuResponse and update related services
Deploy Application / deploy (push) Successful in 20s Details
2025-10-28 16:00:43 +07:00
Habib Fatkhul Rohman 8fe9a5bb5c Refactor role management API endpoints and update Swagger documentation
- Removed the deprecated /example/helloworld endpoint from Swagger.
- Updated the /roles endpoint to include GET and POST methods for retrieving and creating roles.
- Added detailed documentation for role-related endpoints including assigning and removing permissions, and managing roles for users.
- Introduced new DTOs for role creation, updating, and permission management.
- Updated response schemas to ensure consistency across role management operations.
- Enhanced validation requirements for role and permission requests.
2025-10-28 15:43:09 +07:00
Habib Fatkhul Rohman 53a8456e79 fix(dto): Update URL and mode validation to allow shorter input lengths
Deploy Application / deploy (push) Successful in 19s Details
2025-10-28 15:37:48 +07:00
Habib Fatkhul Rohman d34f1238d1 feat(api): Enhance API documentation and functionality for clients, menus, and maintenance groups
Deploy Application / deploy (push) Successful in 19s Details
- Added new DTO definitions for AssignMenusToClientRequest, MaintGroupCreateRequest, MaintGroupUpdateRequest, and related entities in swagger.yaml.
- Implemented CRUD operations for clients, including creating, updating, deleting, and retrieving clients with detailed API documentation.
- Introduced endpoints for assigning and removing menus from clients with appropriate request bodies.
- Enhanced maintenance group management with endpoints for creating, updating, deleting, and retrieving maintenance groups.
- Updated menu management with endpoints for creating, updating, deleting, and retrieving menus, including filtering and sorting capabilities.
- Refactored user-related endpoints to return a consistent response structure using utils.Response.
2025-10-28 15:25:59 +07:00
Habib Fatkhul Rohman dbdb608e9b fix: Disable trailing slash redirection and update CORS middleware usage 2025-10-28 15:23:45 +07:00
Habib Fatkhul Rohman 27545b0288 fix: Update CORS middleware to allow dynamic origin handling
Deploy Application / deploy (push) Successful in 19s Details
2025-10-28 15:13:08 +07:00
Habib Fatkhul Rohman 1300108c41 fix: Restrict CORS to specific origins for enhanced security
Deploy Application / deploy (push) Successful in 18s Details
2025-10-28 15:08:09 +07:00
Habib Fatkhul Rohman 02fff69d2e fix: Update Dockerfile command to use --migrate for database migration
Deploy Application / deploy (push) Successful in 17s Details
2025-10-28 14:55:03 +07:00
Habib Fatkhul Rohman 973c434f47 fix: Update binding for MaintenanceGroupRoles to allow optional presence 2025-10-28 14:54:53 +07:00
Habib Fatkhul Rohman 09d08e61c6 fix: Update Dockerfile command to use --fresh for database migration
Deploy Application / deploy (push) Successful in 22s Details
2025-10-28 14:44:14 +07:00
Habib Fatkhul Rohman 1bfd4ff176 feat: Implement menu assignment and removal for clients with corresponding service and repository methods 2025-10-28 13:55:33 +07:00
Habib Fatkhul Rohman 4371103cc7 feat: Add unique index to MenuID and ClientID fields in M_Menu_Client entity 2025-10-28 13:55:04 +07:00
Habib Fatkhul Rohman c6644aa38e feat: Add response utilities with pagination support and enhance response structures 2025-10-28 13:52:36 +07:00
Habib Fatkhul Rohman 2db31dc017 feat: Add client module with CRUD operations, DTOs, repository, and service layers
Deploy Application / deploy (push) Successful in 23s Details
2025-10-28 10:09:31 +07:00
Habib Fatkhul Rohman f9c5dc3f63 feat: Implement cascading delete constraints for maintenance group entities and enhance service methods for role-user relationships
Deploy Application / deploy (push) Successful in 19s Details
2025-10-25 21:00:03 +07:00
Habib Fatkhul Rohman 28d07ea2b0 feat: Enhance maintenance group role entities with cascading constraints and add role-user relationship
Deploy Application / deploy (push) Successful in 20s Details
2025-10-25 01:38:01 +07:00
Habib Fatkhul Rohman e1cb51c5db feat: Update validation for 'mode' field in Menu DTO to require a minimum length of 2 characters 2025-10-25 01:37:42 +07:00
Habib Fatkhul Rohman 467431ca92 feat: Integrate maintenance group module with logging setup and dependency registration 2025-10-25 01:37:21 +07:00
Habib Fatkhul Rohman 3881009eb6 feat: Add DTO structures for User, Role, and Client responses 2025-10-25 01:36:22 +07:00
Habib Fatkhul Rohman b397a2ba24 feat: Enhance logging setup with Logrus integration and custom formatter 2025-10-25 01:36:10 +07:00
Habib Fatkhul Rohman b533554f98 feat: Add maintenance group management with CRUD operations and routing 2025-10-25 01:35:45 +07:00
Habib Fatkhul Rohman 1cf875d13c Merge branch 'main' of https://git.avolut.com/midsuit/wms-be
Deploy Application / deploy (push) Successful in 20s Details
2025-10-23 15:49:25 +07:00
Habib Fatkhul Rohman 1079c5dac8 feat: Implement menu management with CRUD operations and routing 2025-10-23 15:49:10 +07:00
Muhammad Eko 60d861b413 ci/cd
Deploy Application / deploy (push) Successful in 18s Details
2025-10-23 11:15:20 +07:00
Muhammad Eko b9585169b2 update 2025-10-23 10:27:45 +07:00
Habib Fatkhul Rohman 2546a094a3 feat: Revamp logs page with new HTML structure and styles
- Updated logs.html to include a modern design with Tailwind CSS.
- Added a login section for admin access to logs.
- Implemented JavaScript functions for login, log retrieval, and month selection.
- Enhanced user experience with loading indicators and error handling.

feat: Add ServeLogsPage method to LogsController

- Introduced ServeLogsPage method to serve the logs HTML page.
- Configured to respond with HTML when the Accept header is text/html.

refactor: Update logs routes to serve HTML page

- Modified routes to serve the logs HTML page without authentication.
- Adjusted protected routes for log retrieval to use API versioning.

docs: Add API documentation for user and role controllers

- Added Swagger documentation comments for user and role controller methods.
- Documented endpoints for user registration, login, and email verification.
2025-10-23 00:17:07 +07:00
Habib Fatkhul Rohman 80825a70af feat: Enhance role and user role management with new endpoints and DTOs for assigning/removing roles and permissions 2025-10-22 15:29:42 +07:00
Habib Fatkhul Rohman b4554ff5f2 feat: Add maintenance groups and roles with corresponding seeders and migrations 2025-10-22 10:13:24 +07:00
Habib Fatkhul Rohman 04cfb9719b feat: Add many-to-many relationship between menus and clients with seeder support 2025-10-21 20:23:16 +07:00
Habib Fatkhul Rohman 7fa3971c70 feat: Add role-menu seeder and remove redundant ID field from M_Role_Menu 2025-10-21 20:11:40 +07:00
Habib Fatkhul Rohman 37d656999e feat: Implement seeders for menus, permissions, and role-permission associations 2025-10-21 20:05:14 +07:00
Habib Fatkhul Rohman bd93da6264 refactor: Clean up imports and update route registrations in main.go 2025-10-21 15:08:35 +07:00
Habib Fatkhul Rohman d3f0fdb315 feat: Add role-based middleware for SuperAdmin and generic role checking 2025-10-21 15:08:29 +07:00
Habib Fatkhul Rohman 8789d2c72b refactor: Clean up unused imports and update service/controller references in core.go 2025-10-21 15:08:15 +07:00
Habib Fatkhul Rohman 8481397014 fix: Update executable names to include .exe extension and adjust related commands 2025-10-21 15:07:23 +07:00
Habib Fatkhul Rohman e33a6f3ee0 fix: Update PostgreSQL port mapping in docker-compose.yml 2025-10-21 15:07:01 +07:00
Habib Fatkhul Rohman 465908965e feat: Add new entities for maintenance management and user roles
- Created M_Location, M_MaintenanceGroup, M_MaintenanceGroupRole, M_MaintenanceGroupUser, M_MaintenanceScheduleHeader, M_MaintenanceScheduleLine, M_MaintenanceStaff, M_Menu_Client, M_Menu, M_Permissions, M_Role, M_Role_Menu, M_Role_Permission, M_User, M_User_Role entities.
- Implemented relationships and foreign keys for user roles and permissions.
- Added JSON seed files for roles and user roles, along with corresponding seed functions.
- Updated migration and seeder files to include new entities and ensure proper database setup.
- Commented out legacy product and tenant entities and their seed functions for future reference.
2025-10-21 15:06:43 +07:00
Habib Fatkhul Rohman 3cf87f7527 Update Dockerfile to run migrations and seed data; add Nginx route for log retrieval 2025-10-21 15:05:49 +07:00
Habib Fatkhul Rohman 3ea963bd9e Add logs controller and routes for log retrieval by month 2025-10-21 15:05:22 +07:00
Habib Fatkhul Rohman fb49163803 Enhance JWT service to include role ID in access token generation and user token info 2025-10-21 15:05:10 +07:00
Habib Fatkhul Rohman 4bd48c3bca Add role management module with controller, service, repository, DTOs, and routes 2025-10-21 15:04:58 +07:00
Habib Fatkhul Rohman f28b3a5244 Implement user role management and update user response structure to include roles 2025-10-21 15:04:34 +07:00
Habib Fatkhul Rohman 8357303237 Remove product and tenant modules, including controllers, services, repositories, DTOs, queries, and routes for a cleaner codebase. 2025-10-21 15:03:53 +07:00
Habib Fatkhul Rohman 2c84dd0ab6 Update .gitignore and go.mod to include log files and add logrus dependency 2025-10-15 21:15:05 +07:00
Habib Fatkhul Rohman 816ea1610e Add utility functions for password hashing and data validation 2025-10-15 21:14:40 +07:00
Habib Fatkhul Rohman 1b490d8770 Refactor migration and seeder files to remove Tenant and Product references, ensuring consistency with updated entity structures 2025-10-15 21:14:28 +07:00
Habib Fatkhul Rohman 3497f4e540 Refactor common.go to add soft delete and audit functionality with appropriate struct definitions 2025-10-15 21:14:09 +07:00