You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
622 B
22 lines
622 B
4 years ago
|
package models
|
||
|
|
||
|
type Device struct {
|
||
|
WWN string `json:"wwn" gorm:"primary_key"`
|
||
|
|
||
|
DeviceName string `json:"device_name"`
|
||
|
Manufacturer string `json:"manufacturer"`
|
||
|
ModelName string `json:"model_name"`
|
||
|
InterfaceType string `json:"interface_type"`
|
||
|
InterfaceSpeed string `json:"interface_speed"`
|
||
|
SerialNumber string `json:"serial_name"`
|
||
|
Capacity int64 `json:"capacity"`
|
||
|
Firmware string `json:"firmware"`
|
||
|
RotationSpeed int `json:"rotational_speed"`
|
||
|
}
|
||
|
|
||
|
type DeviceRespWrapper struct {
|
||
|
Success bool `json:"success"`
|
||
|
Errors []error `json:"errors"`
|
||
|
Data []Device `json:"data"`
|
||
|
}
|