package entity // Task 定时任务 type Task struct { Id int `orm:"id" json:"id"` GroupId int `orm:"group_id" json:"groupId"` ServerIds string `orm:"server_ids" json:"serverIds"` ServerType int `orm:"server_type" json:"serverType"` TaskName string `orm:"task_name" json:"taskName"` Description string `orm:"description" json:"description"` CronSpec string `orm:"cron_spec" json:"cronSpec"` Concurrent int `orm:"concurrent" json:"concurrent"` TaskType string `orm:"task_type" json:"taskType"` Command string `orm:"command" json:"command"` Url string `orm:"url" json:"url"` Method string `orm:"method" json:"method"` Headers string `orm:"headers" json:"headers"` Body string `orm:"body" json:"body"` Timeout int `orm:"timeout" json:"timeout"` ExecuteTimes int `orm:"execute_times" json:"executeTimes"` PrevTime int64 `orm:"prev_time" json:"prevTime"` Status int `orm:"status" json:"status"` IsNotify int `orm:"is_notify" json:"isNotify"` NotifyType int `orm:"notify_type" json:"notifyType"` NotifyTplId int `orm:"notify_tpl_id" json:"notifyTplId"` NotifyUserIds string `orm:"notify_user_ids" json:"notifyUserIds"` CreateId int `orm:"create_id" json:"createId"` UpdateId int `orm:"update_id" json:"updateId"` CreateTime int64 `orm:"create_time" json:"createTime"` UpdateTime int64 `orm:"update_time" json:"updateTime"` } // TaskCols 字段常量 var TaskCols = struct { Id, GroupId, ServerIds, ServerType, TaskName string Description, CronSpec, Concurrent, TaskType string Command, Url, Method, Headers, Body string Timeout, ExecuteTimes, PrevTime, Status string IsNotify, NotifyType, NotifyTplId, NotifyUserIds string CreateId, UpdateId, CreateTime, UpdateTime string }{ Id: "id", GroupId: "group_id", ServerIds: "server_ids", ServerType: "server_type", TaskName: "task_name", Description: "description", CronSpec: "cron_spec", Concurrent: "concurrent", TaskType: "task_type", Command: "command", Url: "url", Method: "method", Headers: "headers", Body: "body", Timeout: "timeout", ExecuteTimes: "execute_times", PrevTime: "prev_time", Status: "status", IsNotify: "is_notify", NotifyType: "notify_type", NotifyTplId: "notify_tpl_id", NotifyUserIds: "notify_user_ids", CreateId: "create_id", UpdateId: "update_id", CreateTime: "create_time", UpdateTime: "update_time", }