2024-04-27 01:35:21 +08:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-13 21:11:23 +08:00
|
|
|
// MachineCmdConf 机器命令过滤配置
|
2024-04-27 01:35:21 +08:00
|
|
|
type MachineCmdConf struct {
|
|
|
|
|
model.Model
|
|
|
|
|
|
2025-02-13 21:11:23 +08:00
|
|
|
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:备注"` // 备注
|
2024-04-27 01:35:21 +08:00
|
|
|
}
|