mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 系统升级支持数据库自动迁移,避免手动执行升级脚本
This commit is contained in:
@@ -4,13 +4,13 @@ import (
|
||||
"mayfly-go/pkg/model"
|
||||
)
|
||||
|
||||
// 机器命令过滤配置
|
||||
// MachineCmdConf 机器命令过滤配置
|
||||
type MachineCmdConf struct {
|
||||
model.Model
|
||||
|
||||
Name string `json:"name"`
|
||||
Cmds model.Slice[string] `json:"cmds"` // 命令配置
|
||||
Status int8 `json:"execCmds"` // 状态
|
||||
Stratege string `json:"stratege"` // 策略,空禁用
|
||||
Remark string `json:"remark"` // 备注
|
||||
Name string `json:"name" gorm:"size:100;comment:名称"` // 名称
|
||||
Cmds model.Slice[string] `json:"cmds" gorm:"type:varchar(500);comment:命令配置"` // 命令配置
|
||||
Status int8 `json:"status" gorm:"comment:状态"` // 状态
|
||||
Stratege string `json:"stratege" gorm:"size:100;comment:策略"` // 策略,空禁用
|
||||
Remark string `json:"remark" gorm:"size:50;comment:备注"` // 备注
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user