Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleEntity ¶
type ScheduleEntity struct {
app.SoftDeleteModel
app.IdTimeStampsModel
Name string `gorm:"column:name" json:"Name" form:"Name" comment:"任务名"`
Url string `gorm:"column:url" json:"Url" form:"Url" comment:"url"`
Method string `gorm:"column:method" json:"Method" form:"Method" comment:"method"`
Params string `gorm:"column:params" json:"Params" form:"Params" comment:"Params"`
Headers string `gorm:"column:headers" json:"Headers" form:"Headers" comment:"Headers"`
Timeout int `gorm:"column:timeout" json:"Timeout" form:"Timeout" comment:"Timeout"`
Cron string `gorm:"column:cron" json:"Cron" form:"Cron" comment:"cron"`
ExecutorStrategy int `gorm:"column:executor_strategy" json:"ExecutorStrategy" form:"ExecutorStrategy" comment:"执行策略"`
Status int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"状态"`
CronId int `gorm:"column:cron_id" json:"CronId" form:"CronId" comment:"CronId"`
LastRun string `gorm:"column:last_run" json:"LastRun" form:"LastRun" comment:"LastRun"`
NextRun string `gorm:"column:next_run" json:"NextRun" form:"NextRun" comment:"NextRun"`
}
func (ScheduleEntity) TableName ¶
func (ScheduleEntity) TableName() string
type ScheduleLogEntity ¶
type ScheduleLogEntity struct {
app.IdTimeStampsModel
ScheduleId int64 `gorm:"column:schedule_id" json:"ScheduleId,string" form:"ScheduleId" comment:"ScheduleId"`
EndAt app.ISO8601Time `gorm:"column:end_at" json:"EndAt" form:"EndAt" comment:"EndAt"`
StatusCode int `gorm:"column:status_code;default:0" json:"StatusCode" form:"StatusCode" comment:"StatusCode"`
Message string `gorm:"column:message" json:"Message" form:"Message" comment:"Message"`
RunStatus string `gorm:"column:run_status" json:"RunStatus" form:"RunStatus" comment:"RunStatus"`
}
func (ScheduleLogEntity) TableName ¶
func (ScheduleLogEntity) TableName() string
type TaskLogEntity ¶
type TaskLogEntity struct {
app.IdTimeStampsModel
ScheduleId int64 `gorm:"column:schedule_id" json:"ScheduleId,string" form:"ScheduleId" comment:"ScheduleId"`
ScheduleLogId int64 `gorm:"column:schedule_log_id" json:"ScheduleLogId,string" form:"ScheduleLogId" comment:"ScheduleLogId"`
TaskIdentify string `gorm:"column:task_identify" json:"TaskIdentify" form:"TaskIdentify" comment:"TaskIdentify"`
StatusCode int `gorm:"column:status_code;default:0" json:"StatusCode" form:"StatusCode" comment:"StatusCode"`
Message string `gorm:"column:message" json:"Message" form:"Message" comment:"Message"`
Data string `gorm:"column:data" json:"Data" form:"Data" comment:"Data"`
}
func (TaskLogEntity) TableName ¶
func (TaskLogEntity) TableName() string
Click to show internal directories.
Click to hide internal directories.