Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type AppCmdLink ¶
type AppCmdLink struct { gorm.Model App *App `gorm:"ForeignKey:AppId"` //执行的应用 AppId uint `gorm:"column:app_id"` Cmd *Cmd `gorm:"ForeignKey:Cmd"` //发送的命令 CmdId uint `gorm:"column:cmd_id"` }
func (AppCmdLink) TableName ¶
func (AppCmdLink) TableName() string
type AppStatus ¶
type Cmd ¶
type Cmd struct { gorm.Model Title string `gorm:"column:title" json:"title"` //命令标题 Cmd string `gorm:"type:text;column:cmd" json:"cmd"` //命令内容 Des string `gorm:"type:text;column:des" json:"des"` //命令描述 IsSystem bool `gorm:"column:is_system" json:"is_system"` //系统自有命令 RouteKey string `gorm:"column:route_key" json:"route_key"` //消息接收队列标识 }
type SendCmd ¶
type SendCmd struct { gorm.Model App *App `gorm:"ForeignKey:AppId"` //执行的应用 AppId uint `gorm:"column:app_id" json:"app_id"` Cmd *Cmd `gorm:"ForeignKey:Cmd"` //发送的命令 CmdId uint `gorm:"column:cmd_id" json:"cmd_id"` CmdStr string `gorm:"column:cmd_str" json:"cmd_str"` Result string `gorm:"type:text;column:result" json:"result"` //执行命令结果 ResultToJson string `gorm:"type:text;column:result_json" json:"result_to_json"` //执行命令结果json // contains filtered or unexported fields }
func (*SendCmd) BeforeUpdate ¶
func (m *SendCmd) BeforeUpdate()
Click to show internal directories.
Click to hide internal directories.