From 58b2732c3e1c3294d64ba64b06213f73f6da2557 Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Wed, 2 Jul 2025 10:27:01 +0700 Subject: [PATCH] change response --- model/dto/res/device_details.go | 4 ++-- model/dto/res/olt.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/model/dto/res/device_details.go b/model/dto/res/device_details.go index 4698588..f6a3fd7 100644 --- a/model/dto/res/device_details.go +++ b/model/dto/res/device_details.go @@ -39,8 +39,8 @@ type DeviceDetailsResponse struct { } type OLTInfo struct { - OLTID uuid.UUID `json:"olt_id"` - OLTName string `json:"olt_name"` + OLTID uuid.UUID `json:"id"` + OLTName string `json:"name"` } type TowerConnectionDetail struct { diff --git a/model/dto/res/olt.go b/model/dto/res/olt.go index a821808..bedbc9a 100644 --- a/model/dto/res/olt.go +++ b/model/dto/res/olt.go @@ -7,14 +7,14 @@ import ( type OLTResponse struct { ID uuid.UUID `json:"id"` - OLTName string `json:"olt_name"` + OLTName string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type OLTDetailResponse struct { ID uuid.UUID `json:"id"` - OLTName string `json:"olt_name"` + OLTName string `json:"name"` DeviceCount int `json:"device_count"` Devices []DeviceDetailsResponse `json:"devices"` CreatedAt time.Time `json:"created_at"`