2024-10-26 11:57:47 -04:00
|
|
|
package model
|
|
|
|
|
|
|
|
type CronForm struct {
|
2024-11-16 07:57:03 -05:00
|
|
|
TaskType uint8 `json:"task_type,omitempty" default:"0"` // 0:计划任务 1:触发任务
|
|
|
|
Name string `json:"name,omitempty" minLength:"1"`
|
2024-10-26 11:57:47 -04:00
|
|
|
Scheduler string `json:"scheduler,omitempty"`
|
2024-11-16 07:57:03 -05:00
|
|
|
Command string `json:"command,omitempty" validate:"optional"`
|
2024-10-26 11:57:47 -04:00
|
|
|
Servers []uint64 `json:"servers,omitempty"`
|
2024-11-16 07:57:03 -05:00
|
|
|
Cover uint8 `json:"cover,omitempty" default:"0"`
|
|
|
|
PushSuccessful bool `json:"push_successful,omitempty" validate:"optional"`
|
2024-10-26 11:57:47 -04:00
|
|
|
NotificationGroupID uint64 `json:"notification_group_id,omitempty"`
|
|
|
|
}
|