Commit Graph

204 Commits

Author SHA1 Message Date
Habib Fatkhul Rohman d110a31c4f feat(maintenance_group): Enhance MaintenanceGroup structure and responses with ClientID and total role count 2025-11-03 14:37:58 +07:00
Habib Fatkhul Rohman e3127c075d feat(role): Add many-to-many relationship for Menus in M_Role and update RoleResponse 2025-11-03 14:35:57 +07:00
Habib Fatkhul Rohman 474c3c6205 fix(entity): Remove unique index from Code field in M_MaintenanceGroup struct 2025-11-03 14:25:58 +07:00
Habib Fatkhul Rohman bc932901f7 refactor(role): Comment out role name existence check in CreateRole function
Deploy Application / deploy (push) Successful in 23s Details
2025-11-03 14:19:52 +07:00
Habib Fatkhul Rohman f1a5395d68 feat(user): Add client information to UserResponse and preload client in GetUserById
Deploy Application / deploy (push) Successful in 24s Details
2025-11-03 13:41:49 +07:00
Habib Fatkhul Rohman 6b608a86a9 feat(docs): Enhance API documentation for AssignMenusToRole and RemoveMenusFromRole endpoints
Deploy Application / deploy (push) Successful in 21s Details
2025-11-03 11:42:46 +07:00
Habib Fatkhul Rohman e80b89d2ff feat(docs): Update API documentation for menu assignment and removal endpoints 2025-11-03 11:42:35 +07:00
Habib Fatkhul Rohman a07b96f5ce feat(role): Add menu assignment and removal functionality for roles 2025-11-03 11:40:40 +07:00
Habib Fatkhul Rohman 21d1b3d6ba Update go.sum to remove unused dependencies and update existing ones
- Removed dependencies: PuerkitoBio/purell, PuerkitoBio/urlesc, bytedance/sonic (v1.13.1), cloudwego/base64x (v0.1.5), gabriel-vasile/mimetype (v1.4.8), gin-contrib/sse (v1.0.0), go-openapi/swag (v0.25.1), go-playground/validator/v10 (v10.25.0), google/go-cmp (v0.6.0), josharian/intern, mailru/easyjson (v0.9.1), ugorji/go/codec (v1.2.12), golang.org/x/arch (v0.15.0), golang.org/x/crypto (v0.36.0), golang.org/x/net (v0.37.0), golang.org/x/sync (v0.12.0), golang.org/x/sys (v0.31.0), google.golang.org/protobuf (v1.36.5).
- Updated dependencies: bytedance/sonic (to v1.14.1), cloudwego/base64x (to v0.1.6), gabriel-vasile/mimetype (to v1.4.10), gin-contrib/sse (to v1.1.0), go-openapi/swag (to v0.19.15), google/go-cmp (to v0.7.0), golang.org/x/arch (to v0.22.0), golang.org/x/crypto (to v0.43.0), golang.org/x/net (to v0.46.0), golang.org/x/sync (to v0.17.0), golang.org/x/sys (to v0.37.0), google.golang.org/protobuf (to v1.36.10), gopkg.in/yaml.v2 (to v2.4.0).
2025-11-03 11:40:21 +07:00
Habib Fatkhul Rohman 04dae9dd48 fix(docker): Remove --fresh flag from CMD in Dockerfile for migration command 2025-10-31 15:36:17 +07:00
Habib Fatkhul Rohman 1f23b12918 feat(repository): Refactor Update methods to use Model and Where for better clarity and performance 2025-10-31 15:30:02 +07:00
Habib Fatkhul Rohman a526b94e19 feat(docker): Update CMD in Dockerfile to include --fresh flag for migration
Deploy Application / deploy (push) Successful in 21s Details
2025-10-31 11:27:50 +07:00
Habib Fatkhul Rohman 82579efe36 feat(role): Refactor role handling to include client details in responses and update API routes 2025-10-31 11:27:29 +07:00
Habib Fatkhul Rohman 14cbd567b3 feat(product): Enhance product entities and DTOs with client and category relationships 2025-10-31 10:48:04 +07:00
Habib Fatkhul Rohman 26d8f997ed feat(menu): Enhance menu model to include clients and permissions in responses
Deploy Application / deploy (push) Successful in 20s Details
2025-10-30 14:59:34 +07:00
Habib Fatkhul Rohman 203857d116 feat(menu): Update GetMenus to use client_id from query and enhance filtering
Deploy Application / deploy (push) Successful in 31s Details
2025-10-30 14:45:02 +07:00
Habib Fatkhul Rohman 02dc2c71d8 feat(uom): Add UOM management with CRUD operations and routing
Deploy Application / deploy (push) Successful in 22s Details
2025-10-30 14:20:20 +07:00
Habib Fatkhul Rohman fbbbeb5304 fix(role): Restore ClientID filter in GetRoles method
refactor(docker): Simplify CMD in Dockerfile by removing seed command
2025-10-30 14:11:40 +07:00
Habib Fatkhul Rohman e632f71329 refactor(entity): Update unique index priorities for product entity fields 2025-10-30 13:35:27 +07:00
Habib Fatkhul Rohman bf6271c3dc feat(category): Implement category management with CRUD operations and routing 2025-10-30 13:15:43 +07:00
Habib Fatkhul Rohman a36a891a71 refactor(entity): Remove FullAuditTrail from M_Role_Permission struct 2025-10-30 12:20:57 +07:00
Habib Fatkhul Rohman 2ade3121ff refactor(docker): Update CMD in Dockerfile to use migration command
Deploy Application / deploy (push) Successful in 22s Details
refactor(role): Comment out unused client ID handling in GetRoles method
refactor(role): Comment out role name existence check in UpdateRole method
refactor(command): Enhance logging for migration and seeder processes
2025-10-30 12:00:11 +07:00
Habib Fatkhul Rohman b779ec501b fix(seeder): Uncomment previously commented seeders for data initialization
Deploy Application / deploy (push) Successful in 20s Details
2025-10-30 11:37:30 +07:00
Habib Fatkhul Rohman ccc3907661 feat(seeder): Enable permission and role permission seeders for data initialization
Deploy Application / deploy (push) Successful in 18s Details
2025-10-30 11:31:51 +07:00
Habib Fatkhul Rohman c9ee681b2c feat(seeder): Enable role and user role seeders for data initialization
Deploy Application / deploy (push) Successful in 16s Details
2025-10-30 11:26:51 +07:00
Habib Fatkhul Rohman e8bdd02004 fix(seeder): Comment out unused seeders for clarity
Deploy Application / deploy (push) Successful in 20s Details
fix(docker): Update CMD in Dockerfile to use --fresh for migration
2025-10-30 11:21:49 +07:00
Habib Fatkhul Rohman 28f9221153 refactor(logs): Improve log file reading by normalizing newlines and splitting entries
Deploy Application / deploy (push) Successful in 20s Details
2025-10-29 22:49:40 +07:00
Habib Fatkhul Rohman f69fae3f38 feat(logs): Enhance log retrieval by adding app log support and limiting results to 100 entries 2025-10-29 22:41:01 +07:00
Habib Fatkhul Rohman 0a5eb4d766 feat(logging): Implement global recovery middleware with Logrus for enhanced error handling 2025-10-29 22:40:48 +07:00
Habib Fatkhul Rohman fc43112d19 feat(monitoring): Add health check and error log retrieval endpoints 2025-10-29 22:40:28 +07:00
Habib Fatkhul Rohman 1a8b52fcc1 fix(docker): Update CMD in Dockerfile to use --fresh for migration
Deploy Application / deploy (push) Successful in 17s Details
2025-10-29 15:36:35 +07:00
Habib Fatkhul Rohman 1d687fe2d7 feat(product): Implement product management with CRUD operations and routing
Deploy Application / deploy (push) Successful in 20s Details
2025-10-29 15:34:33 +07:00
Habib Fatkhul Rohman 170d284d08 fix(menu): Update ParentID handling in MenuUpdateRequest and improve Update method for better clarity
Deploy Application / deploy (push) Successful in 8s Details
2025-10-29 15:10:21 +07:00
Habib Fatkhul Rohman fa9c1ba44f feat(permissions): Add CRUD operations for permissions with Swagger documentation
Deploy Application / deploy (push) Successful in 16s Details
2025-10-29 10:38:53 +07:00
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