2024-07-23 14:48:37 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Host struct {
|
|
|
|
BaseModel
|
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
GroupID uint `gorm:"not null" json:"group_id"`
|
|
|
|
Name string `gorm:"not null" json:"name"`
|
|
|
|
Addr string `gorm:"not null" json:"addr"`
|
|
|
|
Port int `gorm:"not null" json:"port"`
|
|
|
|
User string `gorm:"not null" json:"user"`
|
|
|
|
AuthMode string `gorm:"not null" json:"authMode"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
PrivateKey string `json:"privateKey"`
|
|
|
|
PassPhrase string `json:"passPhrase"`
|
2024-07-23 14:48:37 +08:00
|
|
|
RememberPassword bool `json:"rememberPassword"`
|
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
Description string `json:"description"`
|
2024-07-23 14:48:37 +08:00
|
|
|
}
|