NAM-APJATEL-BACKEND/model/dto/res
unknown 9ae9de471d fix: make fishbone dev_end_id optional (nullable)
DeviceEndID was uuid.UUID (non-nullable) in entity, DTO, and response.
Sending empty string from the frontend caused "invalid uuid" parse error.

Changed to *uuid.UUID throughout. CreateFishbone now skips end device
lookup, type validation, port check, and port-usage update when
DeviceEndID is nil. UpdateFishbone pointer comparisons fixed accordingly.

Run once on DB: ALTER TABLE fishbone ALTER COLUMN dev_end_id DROP NOT NULL;

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 16:56:23 +07:00
..
activity_logs_res.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
backbone_res.go adding without connection and without towers 2025-06-18 16:14:16 +07:00
cable_connections_res.go adding bulking for images, devices, and add cable connections logics 2025-10-10 17:14:16 +07:00
deviceType_res.go edit responses api for better responses (backbone and devices) 2025-03-24 10:50:18 +07:00
device_details.go change response 2025-07-02 10:27:01 +07:00
device_inspections_res.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
device_res.go adding bulking for images, devices, and add cable connections logics 2025-10-10 17:14:16 +07:00
fishbone_res.go fix: make fishbone dev_end_id optional (nullable) 2026-04-11 16:56:23 +07:00
login_res.go project init 2025-02-13 13:46:06 +07:00
nearest_devices.go add image_urls to nearest device 2025-06-20 09:28:31 +07:00
nearest_towers.go adding nearest device for towers 2025-06-18 16:42:03 +07:00
olt.go change response 2025-07-02 10:27:01 +07:00
register_res.go project init 2025-02-13 13:46:06 +07:00
tower_res.go adding multiple images create and update also for the responses 2025-06-15 23:00:25 +07:00