Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleDTO ¶
type ScheduleDTO struct { Name string `gorm:"column:name" json:"Name" form:"Name" comment:"任务名"` Url string `gorm:"column:url" json:"Url" form:"Url" comment:"url" validate:"required"` Method string `gorm:"column:method" json:"Method" form:"Method" comment:"method" validate:"required"` 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" validate:"omitempty,min=6,max=20"` 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"` }
type ScheduleLogDTO ¶
type ScheduleLogDTO struct { 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"` 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"` CreatedAt app.ISO8601Time }
type ScheduleLogVO ¶
type ScheduleLogVO struct { Id int64 `gorm:"primaryKey;autoIncrement:false" json:"Id,string"` 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"` 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"` CreatedAt app.ISO8601Time UpdatedAt app.ISO8601Time }
func (ScheduleLogVO) GetDetailVO ¶
func (c ScheduleLogVO) GetDetailVO() interface{}
func (ScheduleLogVO) GetListVO ¶
func (c ScheduleLogVO) GetListVO() interface{}
type ScheduleVO ¶
type ScheduleVO struct { Id int64 `gorm:"primaryKey;autoIncrement:false" json:"Id,string"` 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"` CreatedAt app.ISO8601Time UpdatedAt app.ISO8601Time }
func (ScheduleVO) GetDetailVO ¶
func (c ScheduleVO) GetDetailVO() interface{}
func (ScheduleVO) GetListVO ¶
func (c ScheduleVO) GetListVO() interface{}
Click to show internal directories.
Click to hide internal directories.