package entity // TaskLog 任务执行日志 type TaskLog struct { Id int `orm:"id" json:"id"` TaskId int `orm:"task_id" json:"taskId"` ServerId int `orm:"server_id" json:"serverId"` ServerName string `orm:"server_name" json:"serverName"` Output string `orm:"output" json:"output"` Error string `orm:"error" json:"error"` Status int `orm:"status" json:"status"` ProcessTime int `orm:"process_time" json:"processTime"` CreateTime int64 `orm:"create_time" json:"createTime"` } // TaskLogCols 字段常量 var TaskLogCols = struct { Id, TaskId, ServerId, ServerName string Output, Error, Status, ProcessTime, CreateTime string }{ Id: "id", TaskId: "task_id", ServerId: "server_id", ServerName: "server_name", Output: "output", Error: "error", Status: "status", ProcessTime: "process_time", CreateTime: "create_time", }