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{}
type TaskLogCreateDTO ¶ added in v1.8.6
type TaskLogCreateDTO struct { ScheduleId int64 `gorm:"column:schedule_id" json:"ScheduleId,string" binding:"omitempty" form:"ScheduleId" comment:"ScheduleId" ` ScheduleLogId int64 `gorm:"column:schedule_log_id" json:"ScheduleLogId,string" binding:"omitempty" 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"` }
type TaskLogQueryDTO ¶ added in v1.8.6
type TaskLogQueryDTO struct { Id int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"Id,string"` CreatedAt_datele string `gorm:"column:created_at_datele" json:"CreatedAt_datele" form:"CreatedAt_datele"` CreatedAt_datege string `gorm:"column:created_at_datege" json:"CreatedAt_datege" form:"CreatedAt_datege"` 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,omitempty" form:"StatusCode" comment:"StatusCode" validate:"omitempty"` Message string `gorm:"column:message" json:"Message" form:"Message" comment:"Message"` Data string `gorm:"column:data" json:"Data" form:"Data" comment:"Data"` }
type TaskLogVO ¶ added in v1.8.6
type TaskLogVO struct { Id int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"Id,string"` 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"` CreatedAt app.ISO8601Time `gorm:"column:created_at"` UpdatedAt app.ISO8601Time `gorm:"column:updated_at"` }
func (TaskLogVO) GetDetailVO ¶ added in v1.8.6
func (c TaskLogVO) GetDetailVO() interface{}
Click to show internal directories.
Click to hide internal directories.