Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleEntity ¶
type ScheduleEntity struct { app.SnowflakeIDModel app.SoftDeleteModel Name string `gorm:"column:name" json:"Name" form:"Name" comment:"名称"` TaskId int64 `gorm:"column:task_id" json:"TaskId,string" form:"TaskId" comment:"任务Id"` Task TaskEntity `gorm:"foreignKey:task_id;AssociationForeignKey:Id" json:"Task"` Param string `gorm:"column:param" json:"Param" form:"Param" comment:"执行参数"` Cron string `gorm:"column:cron" json:"Cron" form:"Cron" comment:"cron"` Status *int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"` CreatedAt time.Time UpdatedAt time.Time }
func (ScheduleEntity) TableName ¶
func (ScheduleEntity) TableName() string
type ScheduleLogEntity ¶
type ScheduleLogEntity struct { app.SnowflakeIDModel ScheduleId int64 `gorm:"column:schedule_id" json:"ScheduleId,string" form:"ScheduleId" comment:"调度id"` StartAt time.Time `gorm:"column:start_at" json:"StartAt" form:"StartAt" comment:"开始时间"` EndAt time.Time `gorm:"column:end_at" json:"EndAt" form:"EndAt" comment:"结束时间"` Status *int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"` Message string `gorm:"column:message" json:"Message" form:"Message" comment:"消息"` CreatedAt time.Time }
func (ScheduleLogEntity) TableName ¶
func (ScheduleLogEntity) TableName() string
type TaskEntity ¶
type TaskEntity struct { app.SnowflakeIDModel ParentId int64 `gorm:"column:parent_id" json:"ParentId,string" form:"ParentId" comment:"父Id"` CategoryId int `gorm:"column:codetory_id" json:"CategoryId" form:"CategoryId" comment:"分类id"` Name string `gorm:"column:name" json:"Name" form:"Name" comment:"名称"` Code string `gorm:"column:code" json:"Code" form:"Code" comment:"代码"` FilePath string `gorm:"column:file_path" json:"FilePath" form:"FilePath" comment:"文件路径"` Source string `gorm:"column:source" json:"Source" form:"Source" comment:"来源"` Children []TaskEntity `gorm:"foreignKey:ParentId;" json:"children"` Status int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"` CreatedAt time.Time UpdatedAt time.Time }
func (TaskEntity) TableName ¶
func (t TaskEntity) TableName() string
type TaskLogEntity ¶
type TaskLogEntity struct { app.SnowflakeIDModel TaskId int64 `gorm:"column:task_id" json:"TaskId,string" form:"TaskId" comment:"任务id"` ScheduleLogId int64 `gorm:"column:schedule_log_id" json:"ScheduleLogId,string" form:"ScheduleLogId" comment:"日志id"` Message string `gorm:"column:message" json:"Message" form:"Message" comment:"消息"` CreatedAt time.Time UpdatedAt time.Time }
func (TaskLogEntity) TableName ¶
func (TaskLogEntity) TableName() string
Click to show internal directories.
Click to hide internal directories.