vaulterm/server/app/hosts/schema.go
2024-11-18 01:28:31 +07:00

30 lines
687 B
Go

package hosts
import "gorm.io/datatypes"
type CreateHostSchema struct {
Type string `json:"type"`
Label string `json:"label"`
Host string `json:"host"`
Port int `json:"port"`
Metadata datatypes.JSONMap `json:"metadata"`
Tags []string `json:"tags"`
TeamID *string `json:"teamId"`
ParentID *string `json:"parentId"`
KeyID *string `json:"keyId"`
AltKeyID *string `json:"altKeyId"`
}
type GetAllOpt struct {
TeamID string
ParentID *string
ID []string
}
type MoveHostSchema struct {
TeamID string `json:"teamId"`
ParentID string `json:"parentId"`
HostID string `json:"hostId"`
}