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