Closed emoss08 closed 2 months ago
This pull request introduces a new location module with significant enhancements to the Location model, including the addition of Comments and Contacts fields. It also includes corresponding migration scripts, updates to service and handler logic, and new utility functions for handling nested validation errors. Additionally, it fixes minor issues and adds unit tests for the AccessorialCharge model.
Files | Changes |
---|---|
pkg/models/location.go pkg/models/location_comment.go pkg/models/location_contact.go |
Enhanced Location model to include Comments and Contacts, with corresponding validation and synchronization logic. |
migrate/migrations/20240701035001_location.tx.up.sql migrate/migrations/20240701035001_location.tx.down.sql |
Added migration scripts for creating and dropping location_comments and location_contacts tables. |
internal/api/services/location.service.go internal/api/handlers/location.handler.go |
Updated service and handler logic to handle new Comments and Contacts fields in Location model. |
Summary by Sourcery
This pull request introduces a new location module with support for comments and contacts, including database schema changes, model updates, and service enhancements. It also improves error handling and validation across various components.