// Package crontask/models.go 数据模型文件 package crontask import ( "time" ) type CronJob struct { ID int `db:"id"` Name string `db:"name"` Schedule string `db:"schedule"` Handler string `db:"handler"` Enabled int `db:"enabled"` Description string `db:"description"` CreatedAt *time.Time `db:"create_time"` UpdatedAt *time.Time `db:"update_time"` } type CronJobLog struct { ID int `db:"id"` JobID int `db:"job_id"` Status string `db:"status"` Message string `db:"message"` StartTime *time.Time `db:"start_time"` EndTime *time.Time `db:"end_time"` }