Files
SamWaf/model/batchtask.go
T
2026-05-12 17:00:04 +08:00

18 lines
1.0 KiB
Go

package model
import "SamWaf/model/baseorm"
// BatchTask 批量任务
type BatchTask struct {
baseorm.BaseOrm
BatchTaskName string `gorm:"size:255" json:"batch_task_name"` //任务名
BatchType string `gorm:"size:50" json:"batch_type"` //任务类型
BatchHostCode string `gorm:"size:64" json:"batch_host_code"` //网站唯一码 是否绑定到某个主机上
BatchSourceType string `gorm:"size:50" json:"batch_source_type"` //来源类型(local,url)
BatchTriggerType string `gorm:"size:50" json:"batch_trigger_type"` //触发类型 定时任务 cron ,手动任务 manual
BatchSource string `gorm:"type:text" json:"batch_source"` //来源内容 路径或者实际的url内容
BatchExecuteMethod string `gorm:"size:100" json:"batch_execute_method"` //任务执行方式 追加,覆盖
BatchExtraConfig string `gorm:"type:text" json:"batch_extra_config"` //额外配置字段(JSON字符串)
Remark string `gorm:"size:500" json:"remark"` //备注
}