Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Conn string
)
Functions ¶
Types ¶
type RouteItem ¶
type RouteItem struct { Base ParentID uint64 `gorm:"not null;default:0;;comment:'组ID'" json:"parent_id"` Name string `gorm:"size:32;not null;default:'';comment:'名称'" json:"name"` Idx string `gorm:"size:32;not null;default:'';comment:'index'" json:"index"` Class string `gorm:"size:32;not null;default:'';comment:'图标'" json:"class"` RouteItems []RouteItem `gorm:"ForeignKey:ID;AssociationForeignKey:ParentID" json:"items"` }
type Serv ¶
type Serv struct { Base ServName string `gorm:"unique;size:32;not null;default:'';comment:'服务名称'" json:"serv_name"` ServType int `gorm:"not null;default:0;comment:'服务类型'" json:"serv_type"` LocalPath string `gorm:"size:256;not null;default:'';comment:'本地路径'" json:"local_path"` ServMd5 string `gorm:"-" json:"serv_md5"` ServEnvs []ServEnv `gorm:"ForeignKey:ServID;AssociationForeignKey:ID" json:"serv_envs"` }
type ServEnv ¶
type ServEnv struct { Base ServID uint64 `gorm:"not null;default:0;;comment:'服务ID'" json:"serv_id"` ServName string `gorm:"size:32;not null;default:'';comment:'服务名称'" json:"serv_name"` EnvID uint64 `gorm:"not null;default:0;;comment:'环境ID'" json:"env_id"` Env string `gorm:"size:32;not null;default:'';comment:'发布环境'" json:"env"` RemotePath string `gorm:"size:256;not null;default:'';comment:'安装路径'" json:"remote_path"` ServMd5 string `gorm:"-" json:"serv_md5"` }
Click to show internal directories.
Click to hide internal directories.