change response

This commit is contained in:
areeqakbr 2025-07-02 10:27:01 +07:00
parent b020b34880
commit 58b2732c3e
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ type DeviceDetailsResponse struct {
} }
type OLTInfo struct { type OLTInfo struct {
OLTID uuid.UUID `json:"olt_id"` OLTID uuid.UUID `json:"id"`
OLTName string `json:"olt_name"` OLTName string `json:"name"`
} }
type TowerConnectionDetail struct { type TowerConnectionDetail struct {

View File

@ -7,14 +7,14 @@ import (
type OLTResponse struct { type OLTResponse struct {
ID uuid.UUID `json:"id"` ID uuid.UUID `json:"id"`
OLTName string `json:"olt_name"` OLTName string `json:"name"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"` UpdatedAt time.Time `json:"updated_at"`
} }
type OLTDetailResponse struct { type OLTDetailResponse struct {
ID uuid.UUID `json:"id"` ID uuid.UUID `json:"id"`
OLTName string `json:"olt_name"` OLTName string `json:"name"`
DeviceCount int `json:"device_count"` DeviceCount int `json:"device_count"`
Devices []DeviceDetailsResponse `json:"devices"` Devices []DeviceDetailsResponse `json:"devices"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`