change response
This commit is contained in:
parent
b020b34880
commit
58b2732c3e
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue